mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-30 14:46:31 +00:00
dtc: do not build/install python support
The pylibfdt in dtc is new since 1.4.5, and therefore built since the bump from 1.4.4 to 1.4.7 in commit 7b929ddcf0812310d0113cf3675429dbd123aa99. Unfortunately, this Python support causes a number of build failures, be it for host-dtc or dtc. Since this Python support is not used/needed by anything in Buildroot at this point, let's simply disable it by passing NO_PYTHON=1. While doing this, introduce DTC_MAKE_OPTS and HOST_DTC_MAKE_OPTS to avoid duplicating the variables several times. Fixes: http://autobuild.buildroot.net/results/1ad41fd4890af0c97ee4ff2994ea5431b8953ef8/ (host-dtc) http://autobuild.buildroot.net/results/0aefc3aa03a93b1fdf76f2d8946b6f423405382f/ (dtc) Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
e169c0f919
commit
b50c95e914
@ -13,6 +13,14 @@ DTC_INSTALL_STAGING = YES
|
|||||||
DTC_DEPENDENCIES = host-bison host-flex
|
DTC_DEPENDENCIES = host-bison host-flex
|
||||||
HOST_DTC_DEPENDENCIES = host-bison host-flex
|
HOST_DTC_DEPENDENCIES = host-bison host-flex
|
||||||
|
|
||||||
|
DTC_MAKE_OPTS = \
|
||||||
|
PREFIX=/usr \
|
||||||
|
NO_PYTHON=1
|
||||||
|
|
||||||
|
HOST_DTC_MAKE_OPTS = \
|
||||||
|
PREFIX=$(HOST_DIR) \
|
||||||
|
NO_PYTHON=1
|
||||||
|
|
||||||
define DTC_POST_INSTALL_TARGET_RM_DTDIFF
|
define DTC_POST_INSTALL_TARGET_RM_DTDIFF
|
||||||
rm -f $(TARGET_DIR)/usr/bin/dtdiff
|
rm -f $(TARGET_DIR)/usr/bin/dtdiff
|
||||||
endef
|
endef
|
||||||
@ -32,26 +40,26 @@ DTC_INSTALL_GOAL = install-lib
|
|||||||
endif # $(BR2_PACKAGE_DTC_PROGRAMS) != y
|
endif # $(BR2_PACKAGE_DTC_PROGRAMS) != y
|
||||||
|
|
||||||
define DTC_BUILD_CMDS
|
define DTC_BUILD_CMDS
|
||||||
$(TARGET_CONFIGURE_OPTS) $(MAKE) CFLAGS="$(TARGET_CFLAGS) -fPIC" -C $(@D) PREFIX=/usr
|
$(TARGET_CONFIGURE_OPTS) $(MAKE) CFLAGS="$(TARGET_CFLAGS) -fPIC" -C $(@D) $(DTC_MAKE_OPTS)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# For staging, only the library is needed
|
# For staging, only the library is needed
|
||||||
define DTC_INSTALL_STAGING_CMDS
|
define DTC_INSTALL_STAGING_CMDS
|
||||||
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) PREFIX=/usr install-lib \
|
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) $(DTC_MAKE_OPTS) install-lib \
|
||||||
install-includes
|
install-includes
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define DTC_INSTALL_TARGET_CMDS
|
define DTC_INSTALL_TARGET_CMDS
|
||||||
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) PREFIX=/usr $(DTC_INSTALL_GOAL)
|
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) $(DTC_MAKE_OPTS) $(DTC_INSTALL_GOAL)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# host build
|
# host build
|
||||||
define HOST_DTC_BUILD_CMDS
|
define HOST_DTC_BUILD_CMDS
|
||||||
$(HOST_CONFIGURE_OPTS) $(MAKE) CFLAGS="$(HOST_CFLAGS) -fPIC" -C $(@D) PREFIX=$(HOST_DIR)
|
$(HOST_CONFIGURE_OPTS) $(MAKE) CFLAGS="$(HOST_CFLAGS) -fPIC" -C $(@D) $(HOST_DTC_MAKE_OPTS)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define HOST_DTC_INSTALL_CMDS
|
define HOST_DTC_INSTALL_CMDS
|
||||||
$(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) PREFIX=$(HOST_DIR) install
|
$(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) $(HOST_DTC_MAKE_OPTS) install
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(generic-package))
|
$(eval $(generic-package))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user