Jonas Gorski
86ec410418
kernel: check SOURCE_DATE_EPOCH before setting KBUILD_BUILD_TIMESTAMP
...
Make sure SOURCE_DATE_EPOCH actually contains something.
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
2016-08-13 15:49:26 +02:00
Jonas Gorski
5fe923b15d
kernel: allow reproducable builds
...
Similar how we fix the file times in the filesystems, fix the build time
of the kernel, and make the build number static. This should allow the
kernel build to be reproducable when combined with setting the
KERNEL_BUILD_USER and _DOMAIN in case of different machines.
The reproducability only applies to non-initramfs kernels, those still
require additional changes.
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
2016-08-13 11:35:00 +02:00
Matteo Croce
1645abffea
kernel: add plan 9 fs package
...
9pfs is used by kvm to share files between host and guest,
add proper config option to enable it.
Signed-off-by: Matteo Croce <matteo.croce@canonical.com>
2016-08-11 10:45:33 +02:00
Jonas Gorski
bebcb81da5
ramips: switch from 24kec to 24kc
...
Since the only difference between 24Kec and 24Kc is the addition of DSP
ASE support, and we don't use it anymore, there is no need to keep 24Kec
as a separate cpu type.
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
2016-08-08 11:29:56 +02:00
Felix Fietkau
22ef1c83b3
kernel: make the kernel build auto-clean the build dir like package builds
...
Previous behavior can be restored by using QUILT=1 on target/prepare
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-08-05 14:17:08 +02:00
Felix Fietkau
2180b715c1
image: fix per-device rootfs build error when not all opkg package files are found
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-08-04 11:19:41 +02:00
John Crispin
4df2011794
include/image.mk: allow image code to override uImage name
...
Signed-off-by: John Crispin <john@phrozen.org>
2016-08-03 15:30:13 +02:00
Felix Fietkau
9abbaa9539
build: remove MIPS dsp/dsp2 CPU_SUBTYPE
...
There does not seem to be any meaningful difference in generated code.
This will save some time and space on snapshot builds
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-08-03 14:56:45 +02:00
Felix Fietkau
f2de33b2c9
build: move merged package directory from bin/ to staging_dir
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-08-03 12:22:18 +02:00
Jo-Philipp Wich
83175687c8
build: remove image specific checksum code
...
Now that we globally calculate sha256sums over the bin/ directory we can remove
the target image specific checksum handling.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2016-08-01 18:11:26 +02:00
Felix Fietkau
905e50d2fb
image: use the merged package directory to resolve dependencies for per-device rootfs
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-08-01 11:13:38 +02:00
Felix Fietkau
180465c38f
build: create a package feed directory containing all packages
...
Needed for proper dependency handling for per-device rootfs
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-08-01 11:13:38 +02:00
Felix Fietkau
e351f7c695
build: fix tabs vs whitespace issue
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-08-01 11:13:38 +02:00
Felix Fietkau
94dec60d75
build: add template for installing device .dtb files
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-07-31 19:35:05 +02:00
Hauke Mehrtens
1448501558
build: do not depend on svn any more
...
LEDE does not need svn to build any more, remove the prerequisite check.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2016-07-31 16:11:37 +02:00
Felix Fietkau
14488469d5
image: fix build issue with per-device rootfs and legacy devices
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-07-31 12:45:18 +02:00
Felix Fietkau
63b525dd6b
image: add a helper variable for getting kernel/rootfs from within image Build/* templates
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-07-31 12:25:25 +02:00
Felix Fietkau
baeda5d31d
image.mk: add CMDLINE to DEVICE_VARS
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-07-30 14:10:33 +02:00
Felix Fietkau
84718d8736
image: add support for overriding kernel/rootfs images in sysupgrade-tar template
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-07-30 14:10:33 +02:00
Felix Fietkau
50e7c1f79d
include/cmake.mk: fix host builds
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-07-29 22:47:46 +02:00
Luke McKee
eadf5fb7f8
cmake: include/cmake.mk add CMAKE_BINARY_SUBDIR to allow out of source tree builds
...
Some packages need out of source tree building with cmake, for example
when building kernel modules.
See an example here:
https://sourceforge.net/p/accel-ppp/code/ci/master/tree/README
Signed-off-by: Luke McKee <hojuruku@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name> [cleanup, rework]
2016-07-29 20:27:34 +02:00
Felix Fietkau
c5a9a08f1e
image.mk: remove leftover variable from a previous rework
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-07-29 17:13:48 +02:00
Jo-Philipp Wich
db49dd894e
build: rename sysupgrade-nand to sysupgrade-tar
...
Now that the "sysupgrade-nand" step is used by non-NAND targets as well,
rename it to "sysupgrade-tar" to make it more generic.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2016-07-29 16:53:03 +02:00
Felix Fietkau
76341cfc5f
build: add support for per-device rootfs based on device profile packges
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-07-29 10:18:26 +02:00
Felix Fietkau
c0dceae4bb
build: minor cleanup of redundant code
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-07-29 10:18:26 +02:00
Felix Fietkau
653cb2594d
build: set TMPDIR for opkg calls
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-07-29 10:18:26 +02:00
Felix Fietkau
c792c7512c
build: add target_params variable for getting root filesystem image parameters
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-07-29 10:18:26 +02:00
Felix Fietkau
731b166528
build: add template for getting opkg package files from package names
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-07-29 10:18:26 +02:00
Felix Fietkau
5d30bf8303
build: rework opkg command invocation
...
Drop included $(XARGS), add support for passing target dir via parameter
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-07-29 10:18:26 +02:00
Felix Fietkau
37e82e4e42
build: remove obsolete variables from opkg command
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-07-29 10:18:26 +02:00
Felix Fietkau
7dffc32ffa
build: rework prepare_rootfs to pass target dir via parameter
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-07-29 10:18:26 +02:00
Felix Fietkau
c5ca181d12
image: add wrapper variable to get the target dir for mkfs commands
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-07-29 10:18:26 +02:00
Felix Fietkau
4fed7a60f9
image: make mkfs template output to $@
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-07-29 10:18:26 +02:00
Felix Fietkau
973e6e1d71
build: move rootfs processing code to include/rootfs.mk so it can be reused later
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-07-29 10:18:26 +02:00
Felix Fietkau
b47f438d98
build: remove image prefix from kernel files in KDIR
...
This allows the image builder to change EXTRA_IMAGE_NAME at a later
point in time without breaking the build
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-07-25 12:44:30 +02:00
Felix Fietkau
9945a1dca5
build: remove cpio.gz and tar.gz from regular filesystem types
...
They are not used to produce regular firmware images anyway. Instead,
call their build templates directly if enabled in the config
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-07-25 12:43:39 +02:00
Felix Fietkau
33c8d35375
image: remove shell calls from legacy ubi/ubifs image code
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-07-25 12:37:50 +02:00
Felix Fietkau
11fc0cd1b1
image.mk: create default ubifs before calling legacy image build code
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-07-22 13:58:58 +02:00
Chris Blake
3827ce2c3d
apm821xx: add support for the apm821xx device target
...
This adds a new target for PowerPC APM82181 and APM82161
(464-based) boards, as well as adds support for the booke-wdt
watchdog package.
Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
2016-07-22 09:48:12 +02:00
Felix Fietkau
8265fdcc4d
imagebuilder: strip DEVICE_ prefix from profiles (FS#55)
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-07-21 13:41:20 +02:00
Felix Fietkau
ed90d50bc4
build: fix image builder profile override (FS#55)
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-07-21 13:29:04 +02:00
Felix Fietkau
b5b2425cba
image.mk: initialize BOARD_NAME and IMAGES, add it to DEVICE_VARS
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-07-20 10:13:50 +02:00
Felix Fietkau
9a50a213d2
image.mk: add support for specifying the VID header offset for UBI
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-07-20 10:13:50 +02:00
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>
2016-07-20 10:13:50 +02:00
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>
2016-07-20 10:13:50 +02:00
Felix Fietkau
ebd0b2d0b1
build: split legacy image building code out of image.mk
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-07-20 10:13:50 +02:00
Felix Fietkau
1c1244193a
image.mk: replace some template abstraction with make pattern rules
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-07-20 10:13:50 +02:00
Felix Fietkau
efdf7f6499
image.mk: remove obsolete Build/mkfs overrides
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-07-20 10:13:50 +02:00
Felix Fietkau
7bdc21de72
image.mk: fix append-dtb race when multiple devices use the same .dts
...
Call Image/BuildDTB unconditionally to keep things consistent
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-07-15 14:18:14 +02:00
Felix Fietkau
f021ea47d3
target.mk: change CPU_CFLAGS to better suit target CPUs
...
-march forces the compiler to generate generic code, whereas -mcpu
allows it to target the specific CPU variant and use instructions that
the generic architecture may not have
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-07-15 14:14:42 +02:00