Skip to content

Commit

Permalink
add a feature flag for device tree support
Browse files Browse the repository at this point in the history
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 38893
  • Loading branch information
kaloz committed Nov 22, 2013
1 parent 4242b42 commit f3e2331
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ menu "Target Images"

config TARGET_ROOTFS_INCLUDE_DTB
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
help
Include the device tree blob file(s) in the rootfs. Typically the DTBs
Expand Down
3 changes: 3 additions & 0 deletions include/target.mk
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ ifeq ($(DUMP),1)
.SILENT: $(TMP_CONFIG)
.PRECIOUS: $(TMP_CONFIG)

ifneq ($(CONFIG_OF),)
FEATURES += dt
endif
ifneq ($(CONFIG_GENERIC_GPIO)$(CONFIG_GPIOLIB),)
FEATURES += gpio
endif
Expand Down
1 change: 1 addition & 0 deletions scripts/metadata.pl
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ (@)
/broken/ and $ret .= "\tdepends on BROKEN\n";
/audio/ and $ret .= "\tselect AUDIO_SUPPORT\n";
/display/ and $ret .= "\tselect DISPLAY_SUPPORT\n";
/dt/ and $ret .= "\tselect USES_DEVICETREE\n";
/gpio/ and $ret .= "\tselect GPIO_SUPPORT\n";
/pci/ and $ret .= "\tselect PCI_SUPPORT\n";
/pcie/ and $ret .= "\tselect PCIE_SUPPORT\n";
Expand Down
3 changes: 3 additions & 0 deletions target/Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ config RTC_SUPPORT
config BIG_ENDIAN
bool

config USES_DEVICETREE
bool

config USES_INITRAMFS
bool

Expand Down

0 comments on commit f3e2331

Please sign in to comment.