|
|
@@ -4,7 +4,7 @@
|
|
|
#
|
|
|
################################################################################
|
|
|
|
|
|
-DTC_VERSION = 1.4.0
|
|
|
+DTC_VERSION = 1.4.1
|
|
|
DTC_SOURCE = dtc-$(DTC_VERSION).tar.xz
|
|
|
DTC_SITE = https://www.kernel.org/pub/software/utils/dtc
|
|
|
DTC_LICENSE = GPLv2+/BSD-2c
|
|
|
@@ -19,8 +19,6 @@ endef
|
|
|
ifeq ($(BR2_PACKAGE_DTC_PROGRAMS),y)
|
|
|
|
|
|
DTC_LICENSE += (for the library), GPLv2+ (for the executables)
|
|
|
-# Use default goal to build everything
|
|
|
-DTC_BUILD_GOAL =
|
|
|
DTC_INSTALL_GOAL = install
|
|
|
ifeq ($(BR2_PACKAGE_BASH),)
|
|
|
DTC_POST_INSTALL_TARGET_HOOKS += DTC_POST_INSTALL_TARGET_RM_DTDIFF
|
|
|
@@ -28,21 +26,17 @@ endif
|
|
|
|
|
|
else # $(BR2_PACKAGE_DTC_PROGRAMS) != y
|
|
|
|
|
|
-DTC_BUILD_GOAL = libfdt
|
|
|
-# libfdt_install is our own install rule added by our patch
|
|
|
-DTC_INSTALL_GOAL = libfdt_install
|
|
|
+DTC_INSTALL_GOAL = install-lib
|
|
|
|
|
|
endif # $(BR2_PACKAGE_DTC_PROGRAMS) != y
|
|
|
|
|
|
define DTC_BUILD_CMDS
|
|
|
- $(TARGET_CONFIGURE_OPTS) \
|
|
|
- CFLAGS="$(TARGET_CFLAGS)" \
|
|
|
- $(MAKE) -C $(@D) PREFIX=/usr $(DTC_BUILD_GOAL)
|
|
|
+ $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) PREFIX=/usr
|
|
|
endef
|
|
|
|
|
|
# For staging, only the library is needed
|
|
|
define DTC_INSTALL_STAGING_CMDS
|
|
|
- $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) PREFIX=/usr libfdt_install
|
|
|
+ $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) PREFIX=/usr install-lib
|
|
|
endef
|
|
|
|
|
|
define DTC_INSTALL_TARGET_CMDS
|