aboutsummaryrefslogtreecommitdiffstats
path: root/include/image.mk
Commit message (Collapse)AuthorAgeFilesLines
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46859 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46792 3c298f89-4303-0410-b956-a3cf2f4a3e73
* image: move netgear-image to top and rename to -dniJonas Gorski2015-09-041-0/+9
| | | | | | | | Use the same naming as netgear-chk. Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46791 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: add a build step for generic sysupgrade nand imageJonas Gorski2015-09-041-0/+8
| | | | | | Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46784 3c298f89-4303-0410-b956-a3cf2f4a3e73
* image: add a build step for building and appending an ubinized rootfsJonas Gorski2015-09-041-0/+10
| | | | | | Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46783 3c298f89-4303-0410-b956-a3cf2f4a3e73
* brcm63xx: move gzip build command to include/image.mkJonas Gorski2015-08-141-0/+5
| | | | | | | | Allow other targets to make use of it. Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46601 3c298f89-4303-0410-b956-a3cf2f4a3e73
* image.mk: add a fit recipeJonas Gorski2015-08-141-0/+10
| | | | | | | | Add a recipe to build a fit wrapped kernel (and optional dtb). Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46600 3c298f89-4303-0410-b956-a3cf2f4a3e73
* image.mk: store the device name variableJonas Gorski2015-08-141-1/+2
| | | | | | | | | Make the device name accessible for any build commands instead of forcing targets to define it themselves. Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46597 3c298f89-4303-0410-b956-a3cf2f4a3e73
* image.mk: replace all Build/netgear-chk with a generic implementationJonas Gorski2015-08-141-0/+9
| | | | | | | | | Instead of letting each target define it themselves, create on in include/image.mk and let the targets use it. Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46596 3c298f89-4303-0410-b956-a3cf2f4a3e73
* image.mk: move KDIR_TMP definition to a central locationJonas Gorski2015-08-141-0/+1
| | | | | | | | | | | Instead of each target defining it the same, move the KDIR_TMP definition to include/image.mk. In addition Image/Build/SysupgradeNAND already requires KDIR_TMP to be set, so it makes sense to have it globally defined. Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46592 3c298f89-4303-0410-b956-a3cf2f4a3e73
* image: fix handling of per-device kernel build commandsFelix Fietkau2015-08-131-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46589 3c298f89-4303-0410-b956-a3cf2f4a3e73
* image: fix device variable exports for initramfs imagesFelix Fietkau2015-07-261-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46496 3c298f89-4303-0410-b956-a3cf2f4a3e73
* image.mk: add a BuildDTB defineJonas Gorski2015-07-161-0/+16
| | | | | | | | | | | Add a Image/BuildDTB command that takes the path to an dts file and applies the CPP using the default include directories, then uses dtc to compile the dts as the specified output file. Additional CPP and DTC flags can be supplied as additional arguments. Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46389 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: Prevent more gzip timestampsJohn Crispin2015-07-141-1/+1
| | | | | | | | | To improve reproducibility, prevent the inclusion of timestamps in the gzip header. Signed-off-by: Reiner Herrmann <reiner@reiner-h.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46361 3c298f89-4303-0410-b956-a3cf2f4a3e73
* image.mk: add Build step pad-toFelix Fietkau2015-06-151-0/+5
| | | | | | | pad-to can be used in a pipe to pad the image to a specific chunk-size. Signed-off-by: Alexander Couzens <lynxis@fe80.eu> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45980 3c298f89-4303-0410-b956-a3cf2f4a3e73
* image.mk: add Build step combined-imageFelix Fietkau2015-06-151-0/+7
| | | | | | Signed-off-by: Alexander Couzens <lynxis@fe80.eu> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45979 3c298f89-4303-0410-b956-a3cf2f4a3e73
* include: image.mk: ensure that $(KDIR)/tmp exists in the IB case as wellJo-Philipp Wich2015-06-011-0/+3
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45870 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: do not call initramfs build from within the image builderFelix Fietkau2015-05-291-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45837 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: in new image building code, do not rebuild kernel images in the image ↵Felix Fietkau2015-05-291-1/+6
| | | | | | | | | | | | builder Some kernel images need to be wrapped in a loader, which cannot be built without a working toolchain. Also, this speeds up the image builder run. Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45836 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: store initramfs kernels in $(KDIR)/tmp - prevents them from being ↵Felix Fietkau2015-05-291-3/+3
| | | | | | | | included in the image builder tarball Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45835 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: store firmware images in $(KDIR)/tmp - prevents them from being ↵Felix Fietkau2015-05-291-3/+4
| | | | | | | | included in the image builder tarball Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45834 3c298f89-4303-0410-b956-a3cf2f4a3e73
* image.mk: make image too big warnings more visibleJonas Gorski2015-05-251-2/+2
| | | | | | | | | Output warnings through stderr to allow them to be easilier spotted when building with V=w. Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45746 3c298f89-4303-0410-b956-a3cf2f4a3e73
* image: disable compile target within image builderFelix Fietkau2015-05-111-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45674 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: disable initramfs build within image builderFelix Fietkau2015-05-111-0/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45673 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: make initramfs kernel builds depend on the image prepare stepFelix Fietkau2015-05-111-0/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45671 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: add support for adding a per-device compile step in the new image ↵Felix Fietkau2015-05-111-0/+12
| | | | | | | | building code Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45670 3c298f89-4303-0410-b956-a3cf2f4a3e73
* include: make dtb argument optional in MkFITFelix Fietkau2015-05-101-1/+1
| | | | | | | | | | | | As mkits.sh makes the -d argument optional, we'll make this same argument optional in the MkFIT function as well. With this change, MkFIT can be used both to generate FIT images with DT, and without DT. Signed-off-by: Mathieu Olivari <mathieu@qca.qualcomm.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45660 3c298f89-4303-0410-b956-a3cf2f4a3e73
* all: replace genext2fs with make_ext4fsJo-Philipp Wich2015-04-201-7/+7
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45517 3c298f89-4303-0410-b956-a3cf2f4a3e73
* image.mk: do not emit multiple target definitions for kernel imagesFelix Fietkau2015-04-181-1/+4
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45498 3c298f89-4303-0410-b956-a3cf2f4a3e73
* image.mk: force rebuild of kernel dependent parts - fixes auto-rebuild on ↵Felix Fietkau2015-04-181-0/+1
| | | | | | | | DTS changes Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45495 3c298f89-4303-0410-b956-a3cf2f4a3e73
* opkg: drop md5 in favour of sha256John Crispin2015-04-141-3/+3
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45437 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: replace the deprecated find argument -perm +0100 with /0100 (#19480)Felix Fietkau2015-04-141-2/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45434 3c298f89-4303-0410-b956-a3cf2f4a3e73
* image.mk: rework FILESYSTEM evaluation order to fix some build issuesFelix Fietkau2015-04-081-5/+7
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45312 3c298f89-4303-0410-b956-a3cf2f4a3e73
* image.mk: export the FILESYSTEM variable to build commandsFelix Fietkau2015-04-031-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45251 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: make device image kernels depend on Image/Prepare stepFelix Fietkau2015-03-311-0/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45190 3c298f89-4303-0410-b956-a3cf2f4a3e73
* image.mk: fix initramfs kernel build instructions leaking across device sectionsFelix Fietkau2015-03-301-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45156 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: ignore errors on copying firmware binaries from $(KDIR) to $(BIN_DIR)Felix Fietkau2015-03-261-0/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45029 3c298f89-4303-0410-b956-a3cf2f4a3e73
* include/image.mk: define variable FILESYSTEMFelix Fietkau2015-03-251-0/+1
| | | | | | | | | | Set it to the filesystem which is build. mktplinkfw need to know which filesystem is used. FILESYSTEM can be squashfs, jffs2-64k, ... Signed-off-by: Alexander Couzens <lynxis@fe80.eu> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44997 3c298f89-4303-0410-b956-a3cf2f4a3e73
* image.mk: allow image build code to run a per-filesystem prepare stepFelix Fietkau2015-03-251-0/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44979 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: allow changing kernel name in new image codeFelix Fietkau2015-01-181-2/+3
| | | | | | | | | Necessary for targets using zImage or other kernel image types. Signed-off-by: Claudio Leite <leitec@staticky.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44018 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: allow passing parameters to padjffs2 via the pad-rootfs commandFelix Fietkau2015-01-171-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44015 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: add image makefile helper function for pading with an offsetFelix Fietkau2015-01-171-0/+11
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44012 3c298f89-4303-0410-b956-a3cf2f4a3e73
* ramips: convert mt7621 images to new image building codeFelix Fietkau2015-01-101-13/+24
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43908 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: add new image building code infrastructureFelix Fietkau2015-01-101-0/+146
| | | | | | | | | This simplifies building device / profile specific images, and allows the build system to parallelize generating images Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43907 3c298f89-4303-0410-b956-a3cf2f4a3e73
* build: add version number to filenamesJo-Philipp Wich2015-01-081-1/+2
| | | | | | | | | | | | This commit introduces a new option CONFIG_VERSION_FILENAMES which causes OpenWrt to embed the version number in generated image files, SDK- and ImageBuilder archives. The option is enabled by default if CONFIG_VERSIONOPT is set. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43869 3c298f89-4303-0410-b956-a3cf2f4a3e73
* image.mk: make ubinize.cfg optionalFelix Fietkau2014-12-271-2/+3
| | | | | | | | | | | | | When using UbinizeImage with ubifs rootfs, ubinize.cfg is no longer needed. Yet, the absance of ubinize.cfg would make the build process abort with an error. Fix that by checking if ubinize.cfg is present and do no not call the "classic" ubinize image generation if it isn't. Signed-off-by: Daniel Golle <daniel@makrotopia.org> [missing new-line before UbinizeImage added itentionally] git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43788 3c298f89-4303-0410-b956-a3cf2f4a3e73
* don't copy initramfs.elf unconditionallyImre Kaloz2014-12-261-1/+0
| | | | | | | | | | targets that need it should do it in their image Makefile Signed-off-by: Imre Kaloz <kaloz@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43780 3c298f89-4303-0410-b956-a3cf2f4a3e73
* The ubinized filesystems should be used for generating theImre Kaloz2014-12-261-1/+1
| | | | | | | | | | final images, so store them in KDIR instead. Signed-off-by: Imre Kaloz <kaloz@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43778 3c298f89-4303-0410-b956-a3cf2f4a3e73
* image.mk: remove legacy target rulesFelix Fietkau2014-10-121-7/+3
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42881 3c298f89-4303-0410-b956-a3cf2f4a3e73
* image.mk: parallelize cpio.gz and tar.gz filesystem buildFelix Fietkau2014-10-121-13/+9
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42880 3c298f89-4303-0410-b956-a3cf2f4a3e73