History log of /openwrt/include/image.mk
Revision Date Author Comments
# d41ac5fd 26-Sep-2016 Ian Pozella <Ian.Pozella@imgtec.com>

image.mk: use LINUX_KARCH rather than ARCH for mkits

The generated 'its' is passed to mkimage which expects linux arch
strings rather than the full arch (e.g. mips not mipsel).

It currently works in some cases where LINUX_KARCH == ARCH but
otherwise you get an unknown arch build error.

Signed-off-by: Ian Pozella <Ian.Pozella@imgtec.com>


# 4bba860a 24-Jun-2016 Ash Benz <ash.benz@bk.ru>

include/image.mk: move build step tplink-safeloader to image.mk

Move tplink-safeloader from target/linux/ar71xx/image/tp-link.mk to include/image.mk

Signed-off-by: Ash Benz <ash.benz@bk.ru>


# 9970ddf4 26-Apr-2016 John Crispin <blogic@openwrt.org>

include: add a no dict version of lzma to new image build code

Required to compress kernels in a brnboot compatible way.

Signed-off-by: Mathias Kresin <openwrt@kresin.me>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49240 3c298f89-4303-0410-b956-a3cf2f4a3e73


# be949aac 20-Mar-2016 John Crispin <blogic@openwrt.org>

include/image.mk: allow including U-Boot environment in UBI

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49039 3c298f89-4303-0410-b956-a3cf2f4a3e73


# e35bd5c1 01-Feb-2016 Jo-Philipp Wich <jow@openwrt.org>

include: image.mk: use correct flag for fixed mtimes with make_ext4fs (#21768)

The correct flag for fixed mtime is -T, not -t.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48610 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 33f2aca2 01-Feb-2016 Felix Fietkau <nbd@openwrt.org>

include/image.mk: fix missing right parenthesis (#21766)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48609 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 0550a613 31-Jan-2016 Felix Fietkau <nbd@openwrt.org>

include/image: use SOURCE_DATE_EPOCH if set for squashfs + ext4 images

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48588 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 01887a4a 31-Jan-2016 Felix Fietkau <nbd@openwrt.org>

include/image: don't save gzip name/timestamp metadata

Signed-off-by: bryan newbold <bnewbold@robocracy.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48587 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 0e8196cc 31-Jan-2016 Felix Fietkau <nbd@openwrt.org>

build system: have tar use $SOURCE_DATE_EPOCH for --mtime

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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48586 3c298f89-4303-0410-b956-a3cf2f4a3e73


# eb5b5acf 06-Jan-2016 Felix Fietkau <nbd@openwrt.org>

build: skip rebuild of kernel images if the source did not change

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48145 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 709aa3c8 04-Jan-2016 Felix Fietkau <nbd@openwrt.org>

export KERNEL_INITRAMFS_IMAGE

`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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48116 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 5d71d6dc 03-Jan-2016 Felix Fietkau <nbd@openwrt.org>

image.mk: use new pure make functions for sanitizing image filenames

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48106 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 4847a9d4 03-Jan-2016 Felix Fietkau <nbd@openwrt.org>

images imagebuilder: Allow to add sanitized extra name

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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48083 3c298f89-4303-0410-b956-a3cf2f4a3e73


# e2ee3db3 03-Jan-2016 Felix Fietkau <nbd@openwrt.org>

images: use configured distribution name for output image names

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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48082 3c298f89-4303-0410-b956-a3cf2f4a3e73


# ebc034d2 19-Dec-2015 Felix Fietkau <nbd@openwrt.org>

image.mk: use cross toolchain cpp for processing dts file instead of relying on the host compiler

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47937 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 1ebac769 09-Dec-2015 Felix Fietkau <nbd@openwrt.org>

build: fix arch used during dts compilation

Use kernel arch for dts compilation.
Also use Image/BuildDTB to build dts for ramips.

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47823 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 0b452f37 07-Nov-2015 Felix Fietkau <nbd@openwrt.org>

image: append-ubi: add optional UBI subpage size

Signed-off-by: Claudio Leite <leitec@staticky.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47411 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 005e2d4e 06-Nov-2015 Felix Fietkau <nbd@openwrt.org>

include/image.mk: Introduce generic option to wrap kernel into JFFS2

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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47404 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 142a5d26 06-Nov-2015 Felix Fietkau <nbd@openwrt.org>

include/image.mk: introduce KERNEL_INITRAMFS_NAME variable

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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47403 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 22354546 31-Oct-2015 Felix Fietkau <nbd@openwrt.org>

include/image.mk: Use PROFILE_SANITIZED in targz image task

Signed-off-by: Petr Štetiar <ynezz@true.cz>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47311 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 02a73de3 31-Oct-2015 Felix Fietkau <nbd@openwrt.org>

include/image.mk: Introduce sanitized profile variable

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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47307 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 3abad938 30-Oct-2015 Felix Fietkau <nbd@openwrt.org>

build: make mkfs-* depend on kernel installation to fix parallel build issues

Reported-by: Petr Štetiar <ynezz@true.cz>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47296 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 686b04f4 11-Sep-2015 Felix Fietkau <nbd@openwrt.org>

include/image.mk: make tar reproducible

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


# 4025298f 04-Sep-2015 Jonas Gorski <jogo@openwrt.org>

image: allow exactly KERNEL_SIZE sized kernels

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


# 490b1749 04-Sep-2015 Jonas Gorski <jogo@openwrt.org>

image: move netgear-image to top and rename to -dni

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


# 0efd6920 04-Sep-2015 Jonas Gorski <jogo@openwrt.org>

build: add a build step for generic sysupgrade nand image

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46784 3c298f89-4303-0410-b956-a3cf2f4a3e73


# b4003c58 04-Sep-2015 Jonas Gorski <jogo@openwrt.org>

image: add a build step for building and appending an ubinized rootfs

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46783 3c298f89-4303-0410-b956-a3cf2f4a3e73


# f3fe638b 14-Aug-2015 Jonas Gorski <jogo@openwrt.org>

brcm63xx: move gzip build command to include/image.mk

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


# 7b5ff07e 14-Aug-2015 Jonas Gorski <jogo@openwrt.org>

image.mk: add a fit recipe

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


# bbf13d61 14-Aug-2015 Jonas Gorski <jogo@openwrt.org>

image.mk: store the device name variable

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


# e0d21348 14-Aug-2015 Jonas Gorski <jogo@openwrt.org>

image.mk: replace all Build/netgear-chk with a generic implementation

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


# e965da36 14-Aug-2015 Jonas Gorski <jogo@openwrt.org>

image.mk: move KDIR_TMP definition to a central location

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


# 70648f53 13-Aug-2015 Felix Fietkau <nbd@openwrt.org>

image: fix handling of per-device kernel build commands

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46589 3c298f89-4303-0410-b956-a3cf2f4a3e73


# c667d85f 26-Jul-2015 Felix Fietkau <nbd@openwrt.org>

image: fix device variable exports for initramfs images

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46496 3c298f89-4303-0410-b956-a3cf2f4a3e73


# af855c68 16-Jul-2015 Jonas Gorski <jogo@openwrt.org>

image.mk: add a BuildDTB define

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


# b5bb9272 14-Jul-2015 John Crispin <blogic@openwrt.org>

build: Prevent more gzip timestamps

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


# 538ad2be 15-Jun-2015 Felix Fietkau <nbd@openwrt.org>

image.mk: add Build step pad-to

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


# e5ae5cda 15-Jun-2015 Felix Fietkau <nbd@openwrt.org>

image.mk: add Build step combined-image

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45979 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 9f3ee855 01-Jun-2015 Jo-Philipp Wich <jow@openwrt.org>

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


# e2ad5c96 29-May-2015 Felix Fietkau <nbd@openwrt.org>

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


# 9272d8d2 29-May-2015 Felix Fietkau <nbd@openwrt.org>

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


# 0f9bf923 29-May-2015 Felix Fietkau <nbd@openwrt.org>

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


# f40fb567 29-May-2015 Felix Fietkau <nbd@openwrt.org>

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


# 0d9df306 25-May-2015 Jonas Gorski <jogo@openwrt.org>

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


# 13700f45 11-May-2015 Felix Fietkau <nbd@openwrt.org>

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


# 31b0a25f 11-May-2015 Felix Fietkau <nbd@openwrt.org>

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


# 56123e0b 11-May-2015 Felix Fietkau <nbd@openwrt.org>

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


# 9c26eee6 11-May-2015 Felix Fietkau <nbd@openwrt.org>

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


# 59606690 10-May-2015 Felix Fietkau <nbd@openwrt.org>

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


# 17edbdb9 20-Apr-2015 Jo-Philipp Wich <jow@openwrt.org>

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


# efb4de40 18-Apr-2015 Felix Fietkau <nbd@openwrt.org>

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


# 725067eb 18-Apr-2015 Felix Fietkau <nbd@openwrt.org>

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


# dcc0f0aa 14-Apr-2015 John Crispin <blogic@openwrt.org>

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


# 4a7f3ec1 13-Apr-2015 Felix Fietkau <nbd@openwrt.org>

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


# ff4a22a3 08-Apr-2015 Felix Fietkau <nbd@openwrt.org>

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


# 257105be 03-Apr-2015 Felix Fietkau <nbd@openwrt.org>

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


# e72d796d 31-Mar-2015 Felix Fietkau <nbd@openwrt.org>

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


# 3166bd1e 30-Mar-2015 Felix Fietkau <nbd@openwrt.org>

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


# 9cf98d38 26-Mar-2015 Felix Fietkau <nbd@openwrt.org>

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


# aac0c4d3 25-Mar-2015 Felix Fietkau <nbd@openwrt.org>

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


# 8db4079b 25-Mar-2015 Felix Fietkau <nbd@openwrt.org>

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


# c8a91544 17-Jan-2015 Felix Fietkau <nbd@openwrt.org>

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


# 496f379a 17-Jan-2015 Felix Fietkau <nbd@openwrt.org>

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


# 0742781e 17-Jan-2015 Felix Fietkau <nbd@openwrt.org>

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


# 6ee18aa5 10-Jan-2015 Felix Fietkau <nbd@openwrt.org>

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


# 0565d88e 10-Jan-2015 Felix Fietkau <nbd@openwrt.org>

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


# a8bb90bd 08-Jan-2015 Jo-Philipp Wich <jow@openwrt.org>

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


# 17ace69b 27-Dec-2014 Felix Fietkau <nbd@openwrt.org>

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


# 3087d229 26-Dec-2014 Imre Kaloz <kaloz@openwrt.org>

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


# 826c6d18 26-Dec-2014 Imre Kaloz <kaloz@openwrt.org>

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


# 4d934085 12-Oct-2014 Felix Fietkau <nbd@openwrt.org>

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


# 787a1b03 12-Oct-2014 Felix Fietkau <nbd@openwrt.org>

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


# 11c06820 12-Oct-2014 Felix Fietkau <nbd@openwrt.org>

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


# 5c9e6a65 12-Oct-2014 Felix Fietkau <nbd@openwrt.org>

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


# 23a100cc 12-Oct-2014 Felix Fietkau <nbd@openwrt.org>

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


# 25f63fe7 12-Oct-2014 Felix Fietkau <nbd@openwrt.org>

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


# 699b3a35 12-Oct-2014 Felix Fietkau <nbd@openwrt.org>

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


# 929db89d 31-Jul-2014 Felix Fietkau <nbd@openwrt.org>

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


# ba86e2f0 21-Jul-2014 John Crispin <blogic@openwrt.org>

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


# 5f417387 26-Jun-2014 Imre Kaloz <kaloz@openwrt.org>

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


# b4696a8b 27-Jun-2014 Imre Kaloz <kaloz@openwrt.org>

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


# f5d5de02 24-Jun-2014 John Crispin <blogic@openwrt.org>

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


# 2badccb7 24-Jun-2014 John Crispin <blogic@openwrt.org>

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


# 31f99ff6 17-Jun-2014 John Crispin <blogic@openwrt.org>

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


# 81674531 16-Jun-2014 John Crispin <blogic@openwrt.org>

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


# f1c0ad03 10-Jun-2014 John Crispin <blogic@openwrt.org>

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


# a4816ec4 02-Jun-2014 Felix Fietkau <nbd@openwrt.org>

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


# 03274023 01-Jun-2014 John Crispin <blogic@openwrt.org>

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


# 6d5d06b7 01-Jun-2014 John Crispin <blogic@openwrt.org>

image: ext4: allow creation of a journaling filesystem

Signed-off-by: Michael Heimpold <mhei@heimpold.de>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40925 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 6c2dc179 01-Jun-2014 John Crispin <blogic@openwrt.org>

image: ext4: allow to choose a block size for the rootfs

Signed-off-by: Michael Heimpold <mhei@heimpold.de>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40924 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 8d8017f9 03-Apr-2014 John Crispin <blogic@openwrt.org>

lantiq: BT Home Hub 2B support - board support

Board support patch for BT Home Hub 2B

Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40370 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 16ecf558 03-Apr-2014 John Crispin <blogic@openwrt.org>

include/make.mk: add support for ubinize-overlay.cfg

Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40365 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 1b9673d7 18-Nov-2013 Luka Perkov <luka@openwrt.org>

image: remove spaces from toupper function

The extra prefix space is passed to the caller.

Signed-off-by: Luka Perkov <luka@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38855 3c298f89-4303-0410-b956-a3cf2f4a3e73


# c872fd9a 13-Nov-2013 Luka Perkov <luka@openwrt.org>

image: don't force ubifs journal size

Small journal size can lead to problems if nand flash is too big. By default
ubifs will use ~12% of volume size or a maximum of 8MiB.

Signed-off-by: Luka Perkov <luka@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38799 3c298f89-4303-0410-b956-a3cf2f4a3e73


# eb680c57 23-Oct-2013 Luka Perkov <luka@openwrt.org>

build: make MkuImage more generic

Signed-off-by: Luka Perkov <luka@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38516 3c298f89-4303-0410-b956-a3cf2f4a3e73


# f0662fc0 17-Oct-2013 Luka Perkov <luka@openwrt.org>

build: set owner root for all files on ubifs creation

When creating an image it makes no sense to have files owned by
the uid and gid on the host (and even creates a bug when for
example dropbear authorized_keys is included via env/files).

Signed-off-by: Joris de Vries <joris@apptrician.nl>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38442 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 4f1464dc 16-Oct-2013 Luka Perkov <luka@openwrt.org>

build: move mkits.sh script to more common place

Signed-off-by: Luka Perkov <luka@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38430 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 9eb69ef0 15-Oct-2013 Luka Perkov <luka@openwrt.org>

ubifs: remove breaking commas from ubi calls

The extra commas get output by the shell resulting in errors since
the commands that get called with those extra commas are then
malformed.

Signed-off-by: Joris de Vries <joris@apptrician.nl>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38419 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 5f404758 12-Oct-2013 Luka Perkov <luka@openwrt.org>

ubifs: when creating ubi(fs) images profile originated arguments have priority

Signed-off-by: Luka Perkov <luka@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38381 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 75f47798 12-Oct-2013 Luka Perkov <luka@openwrt.org>

image: introduce MkuImageARM function

Signed-off-by: Luka Perkov <luka@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38380 3c298f89-4303-0410-b956-a3cf2f4a3e73


# f6ccd395 12-Oct-2013 Luka Perkov <luka@openwrt.org>

ubifs: enable building modular images

Now it is possible to build ubi/ubifs images for only selected boards inside
single target.

Signed-off-by: Luka Perkov <luka@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38375 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 3684777f 12-Oct-2013 Luka Perkov <luka@openwrt.org>

image: if possible use profile name when building .tar.gz images

Signed-off-by: Luka Perkov <luka@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38374 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 69507e84 04-Oct-2013 Luka Perkov <luka@openwrt.org>

build: extend menu with few ubifs options

Signed-off-by: Luka Perkov <luka@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38303 3c298f89-4303-0410-b956-a3cf2f4a3e73


# e51a6a6d 25-Sep-2013 Gabor Juhos <juhosg@openwrt.org>

image: generate separate jffs2 images w/o padding

The new root.jffs2-*-raw images can be used for firmware
images with custom padding requirements.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38196 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 95fe0abb 27-Aug-2013 Luka Perkov <luka@openwrt.org>

image: add hooks for kernel/DTB installation in root filesystem

Signed-off-by: Michael Heimpold <mhei@heimpold.de>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37852 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 173c4c75 26-Aug-2013 Gabor Juhos <juhosg@openwrt.org>

image: ensure that /dev/console exist in rootfs images

Linux expects that the /dev/console node is present in
the rootfs image. Create the node in rootfs images, in
order to make std{in,out,err} usable even in early init
process.

Note: tar.gz and cpio.gz images are not handled yet.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37847 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 42e10356 23-Jul-2013 Gabor Juhos <juhosg@openwrt.org>

image: fix a typo in JFFS2OPTS to fix jffs2 rootfs generation

Due to a typo in the Makefile variable, mkfs.jffs2 is called
without the correct parameters.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37514 3c298f89-4303-0410-b956-a3cf2f4a3e73


# b18e0a3e 19-Jul-2013 Gabor Juhos <juhosg@openwrt.org>

image: fix initramfs image name

Preserve order of components in initramfs image filename
when doing copy from $(KDIR) to $(BIN_DIR).

Patchwork: http://patchwork.openwrt.org/patch/3811/
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37452 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 405fb366 27-Jun-2013 Florian Fainelli <florian@openwrt.org>

include/image.mk: do not make initramfs build exclusive

Allow building initramfs along with other types of filesystems.

Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37050 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 982f0f33 05-Jun-2013 Jonas Gorski <jogo@openwrt.org>

target: split jffs2 NAND out of jffs2

Make jffs2_nand a separate option so this can be triggered without forcing
jffs2 images for nor targets.

Adds a new NAND_BLOCKSIZE variable that allows setting the generated layout
in <page_size>:<block_size> pairs.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36860 3c298f89-4303-0410-b956-a3cf2f4a3e73


# a6c36411 03-Feb-2013 Luka Perkov <luka@openwrt.org>

include/image.mk: export ubifs image from mkfs.ubifs

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35473 3c298f89-4303-0410-b956-a3cf2f4a3e73


# c87db170 11-Jan-2013 Florian Fainelli <florian@openwrt.org>

image.mk: use XZ bcj architecture filter if available

xz supports using an architecture specific BCJ filter, use that one to
save us a couple kB while producing squashfs filesystems (mimics the
Linux kernel).

Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35097 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 9a95c59f 04-Dec-2012 Florian Fainelli <florian@openwrt.org>

Revert "include/image.mk: call Image/Build/{cpiogz,targz}"

This breaks on platforms building their own targz/cpioz images.

Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34498 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 4a233e17 04-Dec-2012 Florian Fainelli <florian@openwrt.org>

include/image.mk: call Image/Build/{cpiogz,targz}

All Image/mkfs/... macros call the Image/Build except for
Image/mkfs/targz and Image/mkfs/cpiogz

This patch adds the Image/Build call for Image/mkfs/targz and
Image/mkfs/cpiogz.

Signed-off-by: Maarten Bezemer <m.m.bezemer@utwente.nl>
Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34473 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 2dfb18cc 29-Nov-2012 Gabor Juhos <juhosg@openwrt.org>

build: Add TARGET_ROOTFS_RESERVED_PCT option to reduce wasted space

The genext2fs tool will 'reserve' 5% of the image size by default,
apparently by creating a huge lost+found directory. In fact it seemed to
be much more than 5% in practice — I saw an image with 8MiB used, and
recovered about 2MiB of it by deleting the 'empty' lost+found directory:

/dev/loop0 48377 8482 37438 19% /mnt/spare
# rmdir lost+found/
/dev/loop0 48377 6014 39906 14% /mnt/spare

This makes it configurable, but leaves it at the genext2fs default
of 5% for now. It should probably be changed to default to zero, but
that can be a separate patch.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34408 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 815dc7a5 27-Nov-2012 Florian Fainelli <florian@openwrt.org>

[buildroot] image.mk: don't squash file permissions in JFFS2 images

Currently we call mkfs.jffs2 --squash, which will change
both file permissions and owners.

If we have some file with suid bits, it will clear these bits.

Thus it's enough to just squash file owners, by replacing that
argument to --squash-uids.

Signed-off-by: Jonh Wendell <jonh.wendell@oiwifi.com.br>
Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34397 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 3d251960 01-Jul-2012 Jo-Philipp Wich <jow@openwrt.org>

include/image.mk: /tmp should have mode 1777

On the off chance that the root filesystem's /tmp is used directly as a
temporary directory instead of having a tmpfs mounted over it, it should have
the sticky bit set.

Signed-off-by: Mark Mentovai <mark@moxienet.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32572 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 15c52a84 05-Jun-2012 Jo-Philipp Wich <jow@openwrt.org>

[package] base-files: add permission exceptions, do not clobber shadow permissions - based on patch by Mark Mentovai <mark@moxienet.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32073 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 1529c7d8 13-Dec-2011 Felix Fietkau <nbd@openwrt.org>

image: increase squashfs block size - visibly reduces image size in many cases

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29519 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 32b5ea45 25-Sep-2011 Jo-Philipp Wich <jow@openwrt.org>

[include] image.mk: pass through $(CONFIG_PKG_BUILD_JOBS) to the mksquashfs -processors option


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28305 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 12e99263 24-Jul-2011 Felix Fietkau <nbd@openwrt.org>

default to using gzip with mksquashfs if lzma and xz are unavailable

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27748 3c298f89-4303-0410-b956-a3cf2f4a3e73


# a0eecf11 03-Jul-2011 John Crispin <blogic@openwrt.org>

extend squashfs padding for 256k flash sectors

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27404 3c298f89-4303-0410-b956-a3cf2f4a3e73


# c1359b57 02-Jul-2011 Gabor Juhos <juhosg@openwrt.org>

generic: use padjffs2 in prepare_generic_squashfs

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27356 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 46132208 02-Apr-2011 Felix Fietkau <nbd@openwrt.org>

tools/squashfs4: update to version 4.2 (adds support for xz compression)

Based on a patch by Jonas Gorski

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26422 3c298f89-4303-0410-b956-a3cf2f4a3e73


# e29c4698 21-Mar-2011 Jo-Philipp Wich <jow@openwrt.org>

[include] image.mk: only upgrade permissions instead of overwriting, utilize tar -p flag for targz image targets (#7667)


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26259 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 06e8850d 22-Nov-2010 Imre Kaloz <kaloz@openwrt.org>

cleanup

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24090 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 00da58c6 22-Nov-2010 Imre Kaloz <kaloz@openwrt.org>

remove 2.6.25 support

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24089 3c298f89-4303-0410-b956-a3cf2f4a3e73


# c1725149 21-Nov-2010 Imre Kaloz <kaloz@openwrt.org>

switch from ext2 to ext4 (w/o) journaling

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24084 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 67fbcc7b 26-Jun-2010 Felix Fietkau <nbd@openwrt.org>

remove linux 2.4 specific build system code

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21951 3c298f89-4303-0410-b956-a3cf2f4a3e73


# f1d6454a 05-May-2010 Nicolas Thill <nico@openwrt.org>

image/ext2: fix rootfs partition size after [21362]


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21369 3c298f89-4303-0410-b956-a3cf2f4a3e73


# ba1debe0 28-Apr-2010 Nicolas Thill <nico@openwrt.org>

include: rearrange image.mk, indent, reorder, change some ifeq/ifneq tests


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21244 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 8b1974bd 28-Apr-2010 Nicolas Thill <nico@openwrt.org>

buildsystem: rename tgz/TGZ "feature" and matching options to targz/TARGZ


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21238 3c298f89-4303-0410-b956-a3cf2f4a3e73


# f696b88f 28-Apr-2010 Nicolas Thill <nico@openwrt.org>

images: allow generating .cpio.gz and/or .tar.gz archives whether ramdisk is selected or not


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21237 3c298f89-4303-0410-b956-a3cf2f4a3e73


# e11f6c93 13-Apr-2010 Alexandros C. Couloumbis <alex@ozo.com>

don't use lzma/jffs2 on <2.6.33, set lzma/jffs2 as default for >=2.6.33. switch verbose mode on compresor statistics.


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20844 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 8a70f533 13-Apr-2010 Alexandros C. Couloumbis <alex@ozo.com>

finalize lzma/jffs2 support (currently not enebled by default, for kernels >=2.6.33) based on Edgar Soldin patches:
https://lists.openwrt.org/pipermail/openwrt-devel/2010-March/006550.html


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20837 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 9d42bb1a 12-Apr-2010 Nicolas Thill <nico@openwrt.org>

define a shared IMG_PREFIX variable used as a basename for image files, it contains board & subtarget infos (if appropriate) allowing subtargets to share the same bin directory without overwriting each other's files


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20834 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 6e84b166 21-Mar-2010 Florian Fainelli <florian@openwrt.org>

change from /jffs to /overlay, patch from Daniel Dickinson

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20356 3c298f89-4303-0410-b956-a3cf2f4a3e73


# c930e873 09-Mar-2010 Nicolas Thill <nico@openwrt.org>

sort entries in images md5sums files


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20116 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 221422bf 04-Mar-2010 Lars-Peter Clausen <lars@metafoo.de>

image.mk: Adjust ubifs build behaviour to that of others image types


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19985 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 98d6f038 11-Feb-2010 Imre Kaloz <kaloz@openwrt.org>

with no users left, remove support for 2.6.21

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19578 3c298f89-4303-0410-b956-a3cf2f4a3e73


# fa404080 22-Jan-2010 Felix Fietkau <nbd@openwrt.org>

fix rootfs preparation with rootfs containing files with whitespaces in the filename (based on patch from #6551)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19282 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 2710572b 10-Jan-2010 Lars-Peter Clausen <lars@metafoo.de>

Add support for building ubifs images.


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19097 3c298f89-4303-0410-b956-a3cf2f4a3e73


# bbc7795b 27-Dec-2009 Imre Kaloz <kaloz@openwrt.org>

get rid of even more 2.6.28 stuff

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18953 3c298f89-4303-0410-b956-a3cf2f4a3e73


# f9f60dce 24-Nov-2009 Felix Fietkau <nbd@openwrt.org>

ar71xx: the squashfs-4k images are unreliable in some builds. add 4k, 8k padding to the generic squashfs images and use them on 4k devices as well

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18526 3c298f89-4303-0410-b956-a3cf2f4a3e73


# ea7dd8e2 03-Nov-2009 Felix Fietkau <nbd@openwrt.org>

unbreak brcm-2.4

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18287 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 301bcdf1 02-Nov-2009 Imre Kaloz <kaloz@openwrt.org>

use the new option for creating squashfs4-lzma images

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18269 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 807acf7c 25-Oct-2009 Imre Kaloz <kaloz@openwrt.org>

swap logic on squashfs version selection

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18163 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 5e1d6a23 26-Aug-2009 Gabor Juhos <juhosg@openwrt.org>

create v4 squashfs image for 2.6.31

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17406 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 25a843cb 05-Aug-2009 Felix Fietkau <nbd@openwrt.org>

work around a threading bug in mksquashfs4 by limiting the number of threads to 1

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17146 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 1a5076a7 25-Jul-2009 Florian Fainelli <florian@openwrt.org>

use --binary option of md5sum to improve compatibility with other platforms (#5192)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16977 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 916ce4ba 17-Jul-2009 Felix Fietkau <nbd@openwrt.org>

get rid of linux 2.6.29

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16883 3c298f89-4303-0410-b956-a3cf2f4a3e73


# bc965cfd 21-May-2009 Felix Fietkau <nbd@openwrt.org>

enable lzma for squashfs4 by default

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15962 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 80f719bd 14-May-2009 Gabor Juhos <juhosg@openwrt.org>

[image] create squashfs4 images if kernel version >=2.6.29


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15866 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 2c21b38c 02-Mar-2009 Ralph Hempel <ralph.hempel@lantiq.com>

don't abort if the operation is failing
( if the board is connected via NFS files might be created by root and can't be changed at this point of time )



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14729 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 38afbcb1 19-Feb-2009 Felix Fietkau <nbd@openwrt.org>

fix potential rootfs owner/group mismatch (tgz root only, patch from #4562)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14569 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 9a4014da 16-Feb-2009 Nicolas Thill <nico@openwrt.org>

[tools] genext2fs: update to 1.4.1


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14536 3c298f89-4303-0410-b956-a3cf2f4a3e73


# cfab7bab 07-Oct-2008 Andy Boyett <agb@openwrt.org>

generate md5 checksums of generated firware images. closes #4003
- checksums located in bin/md5sums
- integrity can be verified using md5sum -c

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12889 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 627b34f1 16-Aug-2008 Felix Fietkau <nbd@openwrt.org>

rework parallel building to get rid of some warnings
and add back support for parallelizing the kernel build
fixes #3882


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12322 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 1d8beaa0 07-Jun-2008 Gabor Juhos <juhosg@openwrt.org>

[images] strip kernel version from image names

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11398 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 59ab5f37 29-Jan-2008 Gabor Juhos <juhosg@openwrt.org>

fix generation of cpio.gz images

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10310 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 1eca4891 28-Dec-2007 Felix Fietkau <nbd@openwrt.org>

add cpio.gz support (patch from #2595)


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9986 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 9a5e7200 18-Oct-2007 John Crispin <blogic@openwrt.org>

remove whitespaces

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9354 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 0f0020ca 08-Oct-2007 John Crispin <blogic@openwrt.org>

added generation of x86 livecds, from #2391

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9191 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 6bcd07af 08-Sep-2007 Felix Fietkau <nbd@openwrt.org>

major target cleanup. it is now possible to have subtargets that can override many target settings, including arch - merge adm5120, adm5120eb. target profiles still need to be adapted for subtargets

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8694 3c298f89-4303-0410-b956-a3cf2f4a3e73


# d10a56dc 06-Aug-2007 Felix Fietkau <nbd@openwrt.org>

build system cleanup/restructuring as described in http://lists.openwrt.org/pipermail/openwrt-devel/2007-August/001159.html

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8362 3c298f89-4303-0410-b956-a3cf2f4a3e73


# c29e1265 02-Aug-2007 Felix Fietkau <nbd@openwrt.org>

fix image installation

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8324 3c298f89-4303-0410-b956-a3cf2f4a3e73


# e996d088 26-Jul-2007 Nicolas Thill <nico@openwrt.org>

remove the @ and change the comment from [8107] (closes: #2122)


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8166 3c298f89-4303-0410-b956-a3cf2f4a3e73


# f6aff55a 22-Jul-2007 Nicolas Thill <nico@openwrt.org>

fix jffs2 images


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8107 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 85c3d5e4 19-Jul-2007 Felix Fietkau <nbd@openwrt.org>

really fix tgz images

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8065 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 21259095 18-Jul-2007 Florian Fainelli <florian@openwrt.org>

Fix the tgz image build


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8042 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 67b10c9e 16-Jul-2007 Felix Fietkau <nbd@openwrt.org>

better support for handling various jffs2 eraseblock sizes

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8011 3c298f89-4303-0410-b956-a3cf2f4a3e73


# b3ee1523 29-Jun-2007 Felix Fietkau <nbd@openwrt.org>

add portability fixes from #1720

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7791 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 12d1bd76 05-Jun-2007 Imre Kaloz <kaloz@openwrt.org>

add support for jffs2 filesystems with 256k blocksize, fix taishan support


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7506 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 05148762 30-May-2007 Florian Fainelli <florian@openwrt.org>

Call the Initramfs template if existing


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7394 3c298f89-4303-0410-b956-a3cf2f4a3e73


# f460eb1c 28-Apr-2007 Felix Fietkau <nbd@openwrt.org>

fixes for a few build errors on osx without fink

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7065 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 1cabba02 12-Apr-2007 Felix Fietkau <nbd@openwrt.org>

revert find | xargs => find | exec changes - this is completely unnecessary and introduces additional dependencies that we do not need

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6942 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 7a5a2cec 02-Apr-2007 Florian Fainelli <florian@openwrt.org>

Use find -exec instead of xargs


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6837 3c298f89-4303-0410-b956-a3cf2f4a3e73


# d60f2546 02-Mar-2007 Felix Fietkau <nbd@openwrt.org>

kernel build cleanup

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6464 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 18de319d 01-Mar-2007 Felix Fietkau <nbd@openwrt.org>

make squashfs overlay support more generic and integrate it for x86-2.6

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6450 3c298f89-4303-0410-b956-a3cf2f4a3e73


# fcbe667a 22-Feb-2007 Tim Yardley <lst@openwrt.org>

make maxinodes configureable for ext2

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6345 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 53aef841 10-Jan-2007 Felix Fietkau <nbd@openwrt.org>

Add initial version of the new Image Builder
It's still a bit rough in a few places, but it seems to work for Broadcom at least - other targets untested.


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6071 3c298f89-4303-0410-b956-a3cf2f4a3e73


# ef05ebce 30-Dec-2006 Nicolas Thill <nico@openwrt.org>

only squash owners, not permissions, when generating ext2 images


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5934 3c298f89-4303-0410-b956-a3cf2f4a3e73


# fb0dfcb2 07-Dec-2006 Felix Fietkau <nbd@openwrt.org>

minor cleanup

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5718 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 25fe6a2e 18-Nov-2006 Felix Fietkau <nbd@openwrt.org>

add prereq checks for target/linux/* and target/image/*, check for fdisk for the x86 builds

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5569 3c298f89-4303-0410-b956-a3cf2f4a3e73


# f453a7e3 11-Nov-2006 Felix Fietkau <nbd@openwrt.org>

add missing include

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5499 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 258f15ce 19-Oct-2006 Felix Fietkau <nbd@openwrt.org>

fix typo

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5242 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 0f07b5ba 18-Oct-2006 Felix Fietkau <nbd@openwrt.org>

make filesystem size selection generic (for ext2)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5221 3c298f89-4303-0410-b956-a3cf2f4a3e73


# a6b335b8 15-Oct-2006 Florian Fainelli <florian@openwrt.org>

Prevent SSH keys from being chmoded to 644 (#664), looks like those are the only files concerned for now


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5135 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 71dcfb2a 23-Sep-2006 Nicolas Thill <nico@openwrt.org>

add BOARD and KERNEL to tgz image file name


git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4850 3c298f89-4303-0410-b956-a3cf2f4a3e73


# fe3afc62 17-Aug-2006 Gerry Rozema <gerryr@rozeware.com>

Build bzImage for x86 builds - allow ext2 images even if initramfs used, they are needed for creating boot images



git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4579 3c298f89-4303-0410-b956-a3cf2f4a3e73


# bd0cc205 14-Aug-2006 Gerry Rozema <gerryr@rozeware.com>

Make ext2 image larger for uml, update uml kernel config


git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4567 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 6d8578a5 22-Jul-2006 Nicolas Thill <nico@openwrt.org>

add genext2fs to build ext2 filesystem images


git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4213 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 17dad6fb 21-Jul-2006 Mike Baker <mbm@openwrt.org>

fix a few directories missed in [4176]'s source -> download


git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4198 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 42fb2160 20-Jul-2006 Gerry Rozema <gerryr@rozeware.com>

UML target completed. Added ext2 target fs for use with uml images



git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4178 3c298f89-4303-0410-b956-a3cf2f4a3e73


# f9e5c1b1 26-Jun-2006 Mike Baker <mbm@openwrt.org>

credit where credit is due


git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4091 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 57013b9f 23-Jun-2006 Mike Baker <mbm@openwrt.org>

switch on new verbose system


git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4064 3c298f89-4303-0410-b956-a3cf2f4a3e73


# d9fc41ff 21-Jun-2006 Felix Fietkau <nbd@openwrt.org>

add 0xdeadc0de to the jffs2 filesystem images

git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4048 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 08cbdbc1 20-Jun-2006 Felix Fietkau <nbd@openwrt.org>

build system cleanup. move shared include files into $(TOPDIR)/include, move lzma, mkfs.* into toolchain/

git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4032 3c298f89-4303-0410-b956-a3cf2f4a3e73