summaryrefslogtreecommitdiff
path: root/include/image.mk
Commit message (Collapse)AuthorAgeFilesLines
...
* image: clean up UBI related device variable definitionsFelix Fietkau2016-07-141-1/+12
| | | | | | | Move UBI related variable export to core, since the variables are used by a core Build/ template Signed-off-by: Felix Fietkau <nbd@nbd.name>
* build: Adds the ability to disable personal initramfs build for target deviceSergey Sergeev2016-06-261-1/+1
| | | | | | | | If KERNEL_INITRAMFS := in the target/linux/*/image/Makefile->Device/%NAME% section is set to '' then personal initramfs file for this target device will not be created. This var is similar to the Device/Build/kernel KERNEL_INSTALL := Signed-off-by: Sergey Sergeev <adron@yapic.net>
* image.mk: add a separate step for building kernel images for LegacyDevice ↵Felix Fietkau2016-06-171-0/+1
| | | | | | support Signed-off-by: Felix Fietkau <nbd@nbd.name>
* image.mk: run LegacyDevice prepare once instead of once per filesystemFelix Fietkau2016-06-171-3/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* image.mk: fix make variable/command context leakage between LegacyDevice ↵Felix Fietkau2016-06-171-0/+1
| | | | | | templates Signed-off-by: Felix Fietkau <nbd@nbd.name>
* image.mk: fix dependencies for legacy make prepare stepFelix Fietkau2016-06-071-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* image.mk: fix filesystem dependency issueFelix Fietkau2016-06-071-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* image.mk: add LegacyDevice wrapper to allow legacy image building code to be ↵Felix Fietkau2016-06-071-5/+58
| | | | | | used for device profiles Signed-off-by: Felix Fietkau <nbd@nbd.name>
* image.mk: change the default of the kernel suffixFelix Fietkau2016-06-071-1/+1
| | | | | | Make it more suitable for installing into bin/ Signed-off-by: Felix Fietkau <nbd@nbd.name>
* image.mk: add support for specifying a different suffix for the initramfs kernelFelix Fietkau2016-06-071-1/+2
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* image.mk: split off all Build/* commands into image-commands.mkFelix Fietkau2016-06-071-150/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* build: implement support for selecting multiple device profilesFelix Fietkau2016-06-071-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* include: move VERSION_DIST_SANITIZED to version.mkAlexander Couzens2016-06-011-3/+0
| | | | | | | Also move sanitize function to version.mk Prepare use of VERSION_DIST_SANITIZED by IB/SDK/toolchain Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
* include: rename DIST_SANITIZED to VERSION_DIST_SANITZEDAlexander Couzens2016-06-011-2/+2
| | | | | | All version variables contain VERSION prefix. Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
* include/image.mk: move build step tplink-safeloader to image.mkAsh Benz2016-05-271-0/+12
| | | | | | Move tplink-safeloader from target/linux/ar71xx/image/tp-link.mk to include/image.mk Signed-off-by: Ash Benz <ash.benz@bk.ru>
* image.mk: remove obsolete SUBTARGETS variableFelix Fietkau2016-05-231-1/+0
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* image.mk: fix profile selection in the image builderFelix Fietkau2016-05-221-1/+5
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* build: allow whitespace characters in VERSION_DISTFelix Fietkau2016-05-211-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* image.mk: simplify device profile check, prepare for supporting selecting ↵Felix Fietkau2016-05-201-5/+8
| | | | | | multiple profiles Signed-off-by: Felix Fietkau <nbd@nbd.name>
* image.mk: fix evaluation order for image profile checkFelix Fietkau2016-05-201-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* image.mk: fix building ubifs imagesDaniel Golle2016-05-191-0/+1
| | | | | | A hook for ubifs was left-out in the new image building code. Add it. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* image.mk: remove obsolete squashfs-lzma codeFelix Fietkau2016-05-161-3/+0
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* image.mk: fix emitting profiles for targets that have no subtargetsFelix Fietkau2016-05-151-3/+2
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* image.mk: include per-device profiles in image build profile checkFelix Fietkau2016-05-111-2/+2
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* image.mk: add support for limiting images to specific subtargetsFelix Fietkau2016-05-111-2/+6
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* image.mk: prepare for defining device profile data in the Device sectionFelix Fietkau2016-05-111-1/+24
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* include: bin/ dir was not createdJohn Crispin2016-04-191-2/+2
| | | | | | explicitly create the bin dir Signed-off-by: John Crispin <john@phrozen.org>
* branding: add LEDE brandingJohn Crispin2016-03-241-3/+3
| | | | Signed-off-by: John Crispin <blogic@openwrt.org>
* include: add a no dict version of lzma to new image build codeJohn Crispin2016-04-261-1/+5
| | | | | | | | Required to compress kernels in a brnboot compatible way. Signed-off-by: Mathias Kresin <openwrt@kresin.me> SVN-Revision: 49240
* include/image.mk: allow including U-Boot environment in UBIJohn Crispin2016-03-201-0/+1
| | | | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 49039
* include: image.mk: use correct flag for fixed mtimes with make_ext4fs (#21768)Jo-Philipp Wich2016-02-011-1/+1
| | | | | | | | The correct flag for fixed mtime is -T, not -t. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 48610
* include/image.mk: fix missing right parenthesis (#21766)Felix Fietkau2016-02-011-1/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48609
* include/image: use SOURCE_DATE_EPOCH if set for squashfs + ext4 imagesFelix Fietkau2016-01-311-1/+2
| | | | | | Signed-off-by: Alexander Couzens <lynxis@fe80.eu> SVN-Revision: 48588
* include/image: don't save gzip name/timestamp metadataFelix Fietkau2016-01-311-3/+2
| | | | | | Signed-off-by: bryan newbold <bnewbold@robocracy.org> SVN-Revision: 48587
* build system: have tar use $SOURCE_DATE_EPOCH for --mtimeFelix Fietkau2016-01-311-2/+6
| | | | | | | | | | | | | | | | The --mtime argument to 'tar' sets the modification time for all files within the archive, which determines the timestamp files will get when they are extracted. In this case, rootfs and other tarballs will get mtimes which correspond to the last commit timestamp of the build system, as reported by git/subversion. This is a step towards reproducible image builds. Signed-off-by: bryan newbold <bnewbold@robocracy.org> Signed-off-by: Alexander Couzens <lynxis@fe80.eu> Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48586
* build: skip rebuild of kernel images if the source did not changeFelix Fietkau2016-01-061-8/+6
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48145
* export KERNEL_INITRAMFS_IMAGEFelix Fietkau2016-01-041-1/+1
| | | | | | | | | | `Build/ubnt-erx-factory-kernel` in `target\linux\ramips\image\Makefile` references `$(KERNEL_INITRAMFS_IMAGE)` which is not exported Signed-off-by: YounJae Rho <luxflow@live.com> SVN-Revision: 48116
* image.mk: use new pure make functions for sanitizing image filenamesFelix Fietkau2016-01-031-11/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48106
* images imagebuilder: Allow to add sanitized extra nameFelix Fietkau2016-01-031-1/+2
| | | | | | | | | | | | | For final output image names allow user to add an extra string (which is sanitized). This is particularly useful with ImageBuilder where you may generate multiple images from the same base and for the same board, with different package selections and additional files (via FILES=). Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com> SVN-Revision: 48083
* images: use configured distribution name for output image namesFelix Fietkau2016-01-031-13/+15
| | | | | | | | | We allow to configure the version distribution name; let's also use it for the final image filenames. Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com> SVN-Revision: 48082
* image.mk: use cross toolchain cpp for processing dts file instead of relying ↵Felix Fietkau2015-12-191-1/+1
| | | | | | | | on the host compiler Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47937
* build: fix arch used during dts compilationFelix Fietkau2015-12-101-3/+3
| | | | | | | | | Use kernel arch for dts compilation. Also use Image/BuildDTB to build dts for ramips. Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com> SVN-Revision: 47823
* image: append-ubi: add optional UBI subpage sizeFelix Fietkau2015-11-071-1/+2
| | | | | | Signed-off-by: Claudio Leite <leitec@staticky.com> SVN-Revision: 47411
* include/image.mk: Introduce generic option to wrap kernel into JFFS2Felix Fietkau2015-11-071-0/+15
| | | | | | | | | Some devices require the kernel to be in a JFFS2 file system. Make the support for this more generic so that it can be used by other devices. Signed-off-by: Benjamin Berg <benjamin@sipsolutions.net> SVN-Revision: 47404
* include/image.mk: introduce KERNEL_INITRAMFS_NAME variableFelix Fietkau2015-11-071-2/+3
| | | | | | | | | | | | | | | | | | | | | In case if we're interested in generation of non-binary images (for example if we want images to be valid .elfs - and that's what we want for ARC now) we have to instruct Device/Build/initramfs target to use input file with some extension (in case of ARC it will be essentially .elf). Otherwise default binary vmlinux-initramfs (without extension) is used and resulting images then are binaries instead of elfs. Now having KERNEL_INITRAMFS_NAME variable it's possible to substitute default $$(KERNEL_NAME)-initramfs with preferred option like $$(KERNEL_NAME)-initramfs.elf. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Cc: Felix Fietkau <nbd@openwrt.org> Cc: John Crispin <blogic@openwrt.org> SVN-Revision: 47403
* include/image.mk: Use PROFILE_SANITIZED in targz image taskFelix Fietkau2015-10-311-1/+1
| | | | | | Signed-off-by: Petr Štetiar <ynezz@true.cz> SVN-Revision: 47311
* include/image.mk: Introduce sanitized profile variableFelix Fietkau2015-10-311-0/+10
| | | | | | | | | Making common code reusable as there's a lot of duplicate code in imx6, kirkwood and oxnas archs. Signed-off-by: Petr Štetiar <ynezz@true.cz> SVN-Revision: 47307
* build: make mkfs-* depend on kernel installation to fix parallel build issuesFelix Fietkau2015-10-301-1/+1
| | | | | | | Reported-by: Petr Štetiar <ynezz@true.cz> Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47296
* include/image.mk: make tar reproducibleFelix Fietkau2015-09-111-1/+1
| | | | | | | | | several packages reported different file order between builds make binutils, kmod-sched reproducible Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de> SVN-Revision: 46859
* image: allow exactly KERNEL_SIZE sized kernelsJonas Gorski2015-09-041-2/+2
| | | | | | | | | The KERNEL_SIZE should be the maximum size, inclusive, so we need to check for greater equal, not just greater. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 46792