mirror of
https://git.busybox.net/buildroot.git
synced 2024-12-11 22:33:29 +08:00
8b500c1b63
Patch 0001-separate-lib-install.patch is no longer needed, original Makefile already contains separate install-lib target (but build always complete default target). Remove superfluous CFLAGS setting. Adjust 0002-extra-cflags.patch. Signed-off-by: Peter Seiderer <ps.report@gmx.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
47 lines
1.2 KiB
Makefile
47 lines
1.2 KiB
Makefile
################################################################################
|
|
#
|
|
# dtc
|
|
#
|
|
################################################################################
|
|
|
|
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
|
|
DTC_LICENSE_FILES = README.license GPL
|
|
DTC_INSTALL_STAGING = YES
|
|
DTC_DEPENDENCIES = host-bison host-flex
|
|
|
|
define DTC_POST_INSTALL_TARGET_RM_DTDIFF
|
|
rm -f $(TARGET_DIR)/usr/bin/dtdiff
|
|
endef
|
|
|
|
ifeq ($(BR2_PACKAGE_DTC_PROGRAMS),y)
|
|
|
|
DTC_LICENSE += (for the library), GPLv2+ (for the executables)
|
|
DTC_INSTALL_GOAL = install
|
|
ifeq ($(BR2_PACKAGE_BASH),)
|
|
DTC_POST_INSTALL_TARGET_HOOKS += DTC_POST_INSTALL_TARGET_RM_DTDIFF
|
|
endif
|
|
|
|
else # $(BR2_PACKAGE_DTC_PROGRAMS) != y
|
|
|
|
DTC_INSTALL_GOAL = install-lib
|
|
|
|
endif # $(BR2_PACKAGE_DTC_PROGRAMS) != y
|
|
|
|
define DTC_BUILD_CMDS
|
|
$(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 install-lib
|
|
endef
|
|
|
|
define DTC_INSTALL_TARGET_CMDS
|
|
$(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) PREFIX=/usr $(DTC_INSTALL_GOAL)
|
|
endef
|
|
|
|
$(eval $(generic-package))
|