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>
8 years ago
Felix Fietkau
f2de33b2c9
build: move merged package directory from bin/ to staging_dir
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
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>
8 years ago
Felix Fietkau
905e50d2fb
image: use the merged package directory to resolve dependencies for per-device rootfs
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
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>
8 years ago
Felix Fietkau
e351f7c695
build: fix tabs vs whitespace issue
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau
94dec60d75
build: add template for installing device .dtb files
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
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>
8 years ago
Felix Fietkau
14488469d5
image: fix build issue with per-device rootfs and legacy devices
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
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>
8 years ago
Felix Fietkau
baeda5d31d
image.mk: add CMDLINE to DEVICE_VARS
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau
84718d8736
image: add support for overriding kernel/rootfs images in sysupgrade-tar template
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau
50e7c1f79d
include/cmake.mk: fix host builds
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
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]
8 years ago
Felix Fietkau
c5a9a08f1e
image.mk: remove leftover variable from a previous rework
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
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>
8 years ago
Felix Fietkau
76341cfc5f
build: add support for per-device rootfs based on device profile packges
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau
c0dceae4bb
build: minor cleanup of redundant code
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau
653cb2594d
build: set TMPDIR for opkg calls
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau
c792c7512c
build: add target_params variable for getting root filesystem image parameters
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau
731b166528
build: add template for getting opkg package files from package names
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
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>
8 years ago
Felix Fietkau
37e82e4e42
build: remove obsolete variables from opkg command
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau
7dffc32ffa
build: rework prepare_rootfs to pass target dir via parameter
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau
c5ca181d12
image: add wrapper variable to get the target dir for mkfs commands
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau
4fed7a60f9
image: make mkfs template output to $@
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
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>
8 years ago
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>
8 years ago
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>
8 years ago
Felix Fietkau
33c8d35375
image: remove shell calls from legacy ubi/ubifs image code
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau
11fc0cd1b1
image.mk: create default ubifs before calling legacy image build code
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
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>
8 years ago
Felix Fietkau
8265fdcc4d
imagebuilder: strip DEVICE_ prefix from profiles (FS#55)
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
Felix Fietkau
ed90d50bc4
build: fix image builder profile override (FS#55)
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
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
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>
8 years ago
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>
8 years ago
Felix Fietkau
11d496d156
target.mk: rework arm architecture level detection
...
Use kernel config as input instead of -march CFLAGS.
With this change, -march can be dropped and replaced with more specific
optimization flags for better code generation.
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
Hauke Mehrtens
efa1960abb
kernel: update kernel 4.4 to version 4.4.15
...
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
8 years ago
Felix Fietkau
2f2d1829be
target.mk: fix ARM architecture feature flag detection
...
Move feature flag checks below CFLAGS handling, use CPU_TYPE CFLAGS for
architecture detection.
Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years ago
John Crispin
1b13b35231
include/toplevel.mk: fix defconfig when ~/.openwrt/defconfig exists - take 2
...
commit 5b72807416
("include/toplevel.mk: fix defconfig when
~/.openwrt/defconfig exists") was missing a !
Signed-off-by: John Crispin <john@phrozen.org>
8 years ago