Jo-Philipp Wich
9f3ee855a6
include: image.mk: ensure that $(KDIR)/tmp exists in the IB case as well
...
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45870 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-06-01 18:00:35 +00:00
Felix Fietkau
e2ad5c96d5
build: do not call initramfs build from within the image builder
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45837 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-05-29 13:41:31 +00:00
Felix Fietkau
9272d8d2f7
build: in new image building code, do not rebuild kernel images in the image 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
2015-05-29 13:41:21 +00:00
Felix Fietkau
0f9bf923fe
build: store initramfs kernels in $(KDIR)/tmp - prevents them from being 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
2015-05-29 13:41:02 +00:00
Felix Fietkau
f40fb56702
build: store firmware images in $(KDIR)/tmp - prevents them from being 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
2015-05-29 13:40:55 +00:00
Jonas Gorski
0d9df306c8
image.mk: make image too big warnings more visible
...
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
2015-05-25 08:27:55 +00:00
Felix Fietkau
13700f454c
image: disable compile target within image builder
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45674 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-05-11 09:17:51 +00:00
Felix Fietkau
31b0a25f6a
build: disable initramfs build within image builder
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45673 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-05-11 09:17:39 +00:00
Felix Fietkau
56123e0b75
build: make initramfs kernel builds depend on the image prepare step
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45671 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-05-11 09:07:58 +00:00
Felix Fietkau
9c26eee61f
build: add support for adding a per-device compile step in the new image 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
2015-05-11 09:07:21 +00:00
Felix Fietkau
59606690fb
include: make dtb argument optional in MkFIT
...
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
2015-05-10 11:46:50 +00:00
Jo-Philipp Wich
17edbdb9a6
all: replace genext2fs with make_ext4fs
...
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45517 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-04-20 13:57:43 +00:00
Felix Fietkau
efb4de4094
image.mk: do not emit multiple target definitions for kernel images
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45498 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-04-18 21:35:22 +00:00
Felix Fietkau
725067eb41
image.mk: force rebuild of kernel dependent parts - fixes auto-rebuild on 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
2015-04-18 19:32:20 +00:00
John Crispin
dcc0f0aacd
opkg: drop md5 in favour of sha256
...
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45437 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-04-14 19:00:14 +00:00
Felix Fietkau
4a7f3ec126
build: replace the deprecated find argument -perm +0100 with /0100 ( #19480 )
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45434 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-04-14 12:49:30 +00:00
Felix Fietkau
ff4a22a3ec
image.mk: rework FILESYSTEM evaluation order to fix some build issues
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45312 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-04-08 09:26:10 +00:00
Felix Fietkau
257105be9e
image.mk: export the FILESYSTEM variable to build commands
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45251 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-04-03 15:22:26 +00:00
Felix Fietkau
e72d796d88
build: make device image kernels depend on Image/Prepare step
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45190 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-03-31 16:52:03 +00:00
Felix Fietkau
3166bd1ea8
image.mk: fix initramfs kernel build instructions leaking across device sections
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45156 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-03-30 13:03:58 +00:00
Felix Fietkau
9cf98d38ca
build: ignore errors on copying firmware binaries from $(KDIR) to $(BIN_DIR)
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45029 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-03-26 18:50:13 +00:00
Felix Fietkau
aac0c4d345
include/image.mk: define variable FILESYSTEM
...
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
2015-03-25 17:58:00 +00:00
Felix Fietkau
8db4079bb3
image.mk: allow image build code to run a per-filesystem prepare step
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44979 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-03-25 14:30:53 +00:00
Felix Fietkau
c8a91544bb
build: allow changing kernel name in new image code
...
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
2015-01-18 00:34:57 +00:00
Felix Fietkau
496f379a42
build: allow passing parameters to padjffs2 via the pad-rootfs command
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44015 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-01-17 21:19:57 +00:00
Felix Fietkau
0742781ec8
build: add image makefile helper function for pading with an offset
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44012 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-01-17 21:19:24 +00:00
Felix Fietkau
6ee18aa54e
ramips: convert mt7621 images to new image building code
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43908 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-01-10 15:26:53 +00:00
Felix Fietkau
0565d88e3b
build: add new image building code infrastructure
...
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
2015-01-10 15:26:47 +00:00
Jo-Philipp Wich
a8bb90bd2f
build: add version number to filenames
...
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
2015-01-08 11:02:00 +00:00
Felix Fietkau
17ace69bf7
image.mk: make ubinize.cfg optional
...
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
2014-12-27 13:03:19 +00:00
Imre Kaloz
3087d22944
don't copy initramfs.elf unconditionally
...
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
2014-12-26 14:31:45 +00:00
Imre Kaloz
826c6d187c
The ubinized filesystems should be used for generating the
...
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
2014-12-26 13:33:22 +00:00
Felix Fietkau
4d934085db
image.mk: remove legacy target rules
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42881 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-12 15:01:08 +00:00
Felix Fietkau
787a1b03f4
image.mk: parallelize cpio.gz and tar.gz filesystem build
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42880 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-12 15:01:01 +00:00
Felix Fietkau
11c0682008
image.mk: split off jffs2-raw images into a separate make target to improve parallel build time
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42879 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-12 15:00:55 +00:00
Felix Fietkau
5c9e6a65b6
image.mk: clean up and parallelize mkfs calls
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42878 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-12 15:00:49 +00:00
Felix Fietkau
23a100cc84
image.mk: call mkfs/prepare for the image builder
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42874 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-12 15:00:11 +00:00
Felix Fietkau
25f63fe71e
image.mk: reduce code duplication, move prepare to a separate make target
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42873 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-12 15:00:07 +00:00
Felix Fietkau
699b3a35ef
image.mk: remove the unnecessary .NOTPARALLEL flag
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42872 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-12 15:00:03 +00:00
Felix Fietkau
929db89dbe
image: only call Image/BuildKernel/Initramfs if initramfs is actually enabled
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41914 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-31 23:40:37 +00:00
John Crispin
ba86e2f03b
include/image.mk: add a path variable for the dts folder
...
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41789 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-21 18:41:56 +00:00
Imre Kaloz
5f417387b8
make UbinizeImage work nicely without a kernel volume
...
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41359 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-27 12:58:08 +00:00
Imre Kaloz
b4696a8be5
include UbinizeImage parameters' description in the file
...
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41356 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-27 10:32:09 +00:00
John Crispin
f5d5de027c
SysupgradeNAND: include rootfs-type in image name
...
also add quotes to paths
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41326 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-24 18:13:51 +00:00
John Crispin
2badccb73e
image.mk: introduce Image/Build/UbinizeImage make target
...
paramters:
$(1) board name
$(2) ubinize-image options (e.g. --no-kernel and/or --uboot-env)
$(3) rootfstype (e.g. squashfs or ubifs)
$(4) kernel image file
$(5) options to pass-through to ubinize (i.e. $($(PROFILE)_UBI_OPTS)))
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41311 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-24 18:12:47 +00:00
John Crispin
31f99ff64c
procd: some cleanup for SysupgradeNAND
...
Removed unused ubi file file from template as ubinized images are
passed directly and not inside the tarball.
Also removed left-over white-space.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41237 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-17 15:40:02 +00:00
John Crispin
8167453148
include/image.mk: cleanup the SysupgradeNAND template
...
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41223 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-16 18:55:18 +00:00
John Crispin
f1c0ad03b7
include/image.mk: add a target for generating sysupgrade tar files for nand
...
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41127 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-11 12:59:41 +00:00
Felix Fietkau
a4816ec4b5
build: make the squashfs block size configurable
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40979 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-02 17:04:34 +00:00
John Crispin
032740230c
image: ext4: rename config options as these are only used for ext4 image creation
...
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40926 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-02 12:44:10 +00:00