add a feature flag for device tree support

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38893 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
kaloz 2013-11-22 12:01:01 +00:00
parent b55a58764b
commit 7972916582
4 changed files with 8 additions and 1 deletions

View file

@ -204,7 +204,7 @@ menu "Target Images"
config TARGET_ROOTFS_INCLUDE_DTB config TARGET_ROOTFS_INCLUDE_DTB
bool "Include DTB in root filesystem" bool "Include DTB in root filesystem"
depends on TARGET_ROOTFS_UBIFS || TARGET_ROOTFS_EXT4FS depends on USES_DEVICETREE && (TARGET_ROOTFS_UBIFS || TARGET_ROOTFS_EXT4FS)
default n if USES_UBIFS default n if USES_UBIFS
help help
Include the device tree blob file(s) in the rootfs. Typically the DTBs Include the device tree blob file(s) in the rootfs. Typically the DTBs

View file

@ -167,6 +167,9 @@ ifeq ($(DUMP),1)
.SILENT: $(TMP_CONFIG) .SILENT: $(TMP_CONFIG)
.PRECIOUS: $(TMP_CONFIG) .PRECIOUS: $(TMP_CONFIG)
ifneq ($(CONFIG_OF),)
FEATURES += dt
endif
ifneq ($(CONFIG_GENERIC_GPIO)$(CONFIG_GPIOLIB),) ifneq ($(CONFIG_GENERIC_GPIO)$(CONFIG_GPIOLIB),)
FEATURES += gpio FEATURES += gpio
endif endif

View file

@ -158,6 +158,7 @@ sub target_config_features(@) {
/broken/ and $ret .= "\tdepends on BROKEN\n"; /broken/ and $ret .= "\tdepends on BROKEN\n";
/audio/ and $ret .= "\tselect AUDIO_SUPPORT\n"; /audio/ and $ret .= "\tselect AUDIO_SUPPORT\n";
/display/ and $ret .= "\tselect DISPLAY_SUPPORT\n"; /display/ and $ret .= "\tselect DISPLAY_SUPPORT\n";
/dt/ and $ret .= "\tselect USES_DEVICETREE\n";
/gpio/ and $ret .= "\tselect GPIO_SUPPORT\n"; /gpio/ and $ret .= "\tselect GPIO_SUPPORT\n";
/pci/ and $ret .= "\tselect PCI_SUPPORT\n"; /pci/ and $ret .= "\tselect PCI_SUPPORT\n";
/pcie/ and $ret .= "\tselect PCIE_SUPPORT\n"; /pcie/ and $ret .= "\tselect PCIE_SUPPORT\n";

View file

@ -39,6 +39,9 @@ config RTC_SUPPORT
config BIG_ENDIAN config BIG_ENDIAN
bool bool
config USES_DEVICETREE
bool
config USES_INITRAMFS config USES_INITRAMFS
bool bool