summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2013-10-16 21:23:24 +0000
committerLuka Perkov <luka@openwrt.org>2013-10-16 21:23:24 +0000
commitcc1b164634a9275e70a57b170daa5fab11450c4b (patch)
tree913bb63860fb2c2b8f560dc5e0242e8867b081a2
parentacdb0ac35c4b527b4e827809160c7478b1162817 (diff)
downloadmtk-20170518-cc1b164634a9275e70a57b170daa5fab11450c4b.zip
mtk-20170518-cc1b164634a9275e70a57b170daa5fab11450c4b.tar.gz
mtk-20170518-cc1b164634a9275e70a57b170daa5fab11450c4b.tar.bz2
build: add menuconfig option for building FIT images
Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 38431
-rw-r--r--Config.in9
-rwxr-xr-xscripts/metadata.pl1
-rw-r--r--target/Config.in3
3 files changed, 13 insertions, 0 deletions
diff --git a/Config.in b/Config.in
index a7ef477..7683a8b 100644
--- a/Config.in
+++ b/Config.in
@@ -189,6 +189,15 @@ menu "Target Images"
Include the device tree blob file(s) in the rootfs. Typically the DTBs
are placed below /boot.
+ comment "Image Type"
+
+ config TARGET_IMAGE_FIT
+ bool "FIT image with kernel and DTB"
+ default y if USES_FIT
+ depends on USES_FIT
+ help
+ Create a u-boot FIT image containing kernel and DTB
+
endmenu
menu "Global build settings"
diff --git a/scripts/metadata.pl b/scripts/metadata.pl
index ddcf50b..04fa827 100755
--- a/scripts/metadata.pl
+++ b/scripts/metadata.pl
@@ -172,6 +172,7 @@ sub target_config_features(@) {
/targz/ and $ret .= "\tselect USES_TARGZ\n";
/cpiogz/ and $ret .= "\tselect USES_CPIOGZ\n";
/ubifs/ and $ret .= "\tselect USES_UBIFS\n";
+ /fit/ and $ret .= "\tselect USES_FIT\n";
/fpu/ and $ret .= "\tselect HAS_FPU\n";
/spe_fpu/ and $ret .= "\tselect HAS_SPE_FPU\n";
/ramdisk/ and $ret .= "\tselect USES_INITRAMFS\n";
diff --git a/target/Config.in b/target/Config.in
index 7f694e4..94c10bb 100644
--- a/target/Config.in
+++ b/target/Config.in
@@ -63,6 +63,9 @@ config USES_CPIOGZ
config USES_UBIFS
bool
+config USES_FIT
+ bool
+
config PROFILE_KCONFIG
bool