Felix Fietkau
b5b2425cba
image.mk: initialize BOARD_NAME and IMAGES, add it to DEVICE_VARS
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau
9a50a213d2
image.mk: add support for specifying the VID header offset for UBI
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau
9497a23ecb
build: add support for parameter passing to mkfs from devices
...
Will be used to support different ubifs parameters per device
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau
4added6692
build: split legacy image mkfs.ubifs command from the one used for the new image building code
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau
ebd0b2d0b1
build: split legacy image building code out of image.mk
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau
1c1244193a
image.mk: replace some template abstraction with make pattern rules
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau
efdf7f6499
image.mk: remove obsolete Build/mkfs overrides
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau
8e2764ce9b
image.mk: clean up redundant code related to DEVICE_DTS
...
It is used by a core build template, so the variable should be
initialized and added to DEVICE_VARS in the core.
Same for DEVICE_DTS_DIR
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau
b8fddb8912
image: allow devices to override the -E 5 ubinize option
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau
e0ed6ec667
image: clean up UBI related device variable definitions
...
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>
8 years ago
Sergey Sergeev
e6b9330343
build: Adds the ability to disable personal initramfs build for target device
...
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>
8 years ago
Felix Fietkau
8a156ad129
image.mk: add a separate step for building kernel images for LegacyDevice support
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau
425e2c1d96
image.mk: run LegacyDevice prepare once instead of once per filesystem
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau
3004275c17
image.mk: fix make variable/command context leakage between LegacyDevice templates
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau
21ad25f547
image.mk: fix dependencies for legacy make prepare step
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau
160913f9de
image.mk: fix filesystem dependency issue
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau
26c771452c
image.mk: add LegacyDevice wrapper to allow legacy image building code to be used for device profiles
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau
dafda4b7f8
image.mk: change the default of the kernel suffix
...
Make it more suitable for installing into bin/
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau
b50dfd5622
image.mk: add support for specifying a different suffix for the initramfs kernel
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau
4c33bbf8f4
image.mk: split off all Build/* commands into image-commands.mk
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau
f8ebbbc568
build: implement support for selecting multiple device profiles
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Alexander Couzens
a7d13178f4
include: move VERSION_DIST_SANITIZED to version.mk
...
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>
8 years ago
Alexander Couzens
38d845b405
include: rename DIST_SANITIZED to VERSION_DIST_SANITZED
...
All version variables contain VERSION prefix.
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
8 years ago
Ash Benz
7eb1a7e956
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>
8 years ago
Felix Fietkau
ce63c38ef5
image.mk: remove obsolete SUBTARGETS variable
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau
e00770f093
image.mk: fix profile selection in the image builder
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau
80bb5adf98
build: allow whitespace characters in VERSION_DIST
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau
d01487e380
image.mk: simplify device profile check, prepare for supporting selecting multiple profiles
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau
c4ae33b048
image.mk: fix evaluation order for image profile check
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Daniel Golle
1ea7dba377
image.mk: fix building ubifs images
...
A hook for ubifs was left-out in the new image building code. Add it.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
8 years ago
Felix Fietkau
7bd10f9a2a
image.mk: remove obsolete squashfs-lzma code
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau
ace946152d
image.mk: fix emitting profiles for targets that have no subtargets
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau
b0cf769008
image.mk: include per-device profiles in image build profile check
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau
60fc6610be
image.mk: add support for limiting images to specific subtargets
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau
bcf67b6974
image.mk: prepare for defining device profile data in the Device section
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
John Crispin
1191eeff8e
include: bin/ dir was not created
...
explicitly create the bin dir
Signed-off-by: John Crispin <john@phrozen.org>
9 years ago
John Crispin
fa69553900
branding: add LEDE branding
...
Signed-off-by: John Crispin <blogic@openwrt.org>
9 years ago
John Crispin
2d255ac8d9
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>
SVN-Revision: 49240
9 years ago
John Crispin
4fe3fda78a
include/image.mk: allow including U-Boot environment in UBI
...
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
SVN-Revision: 49039
9 years ago
Jo-Philipp Wich
f6b399c8ab
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>
SVN-Revision: 48610
9 years ago
Felix Fietkau
dc476f5fa4
include/image.mk: fix missing right parenthesis ( #21766 )
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48609
9 years ago
Felix Fietkau
6a42ee6517
include/image: use SOURCE_DATE_EPOCH if set for squashfs + ext4 images
...
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
SVN-Revision: 48588
9 years ago
Felix Fietkau
08a0095a9e
include/image: don't save gzip name/timestamp metadata
...
Signed-off-by: bryan newbold <bnewbold@robocracy.org>
SVN-Revision: 48587
9 years ago
Felix Fietkau
be6acba4dc
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>
SVN-Revision: 48586
9 years ago
Felix Fietkau
4ab26a52ef
build: skip rebuild of kernel images if the source did not change
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48145
9 years ago
Felix Fietkau
c9f75a77ed
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>
SVN-Revision: 48116
9 years ago
Felix Fietkau
6a90baf2bf
image.mk: use new pure make functions for sanitizing image filenames
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48106
9 years ago
Felix Fietkau
0a0bfc8507
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>
SVN-Revision: 48083
9 years ago
Felix Fietkau
150a1b18c5
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>
SVN-Revision: 48082
9 years ago
Felix Fietkau
caf3a14a3c
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>
SVN-Revision: 47937
9 years ago