bbf: use src local if the src folder exists

This commit is contained in:
Amin Ben Ramdhane 2019-12-28 13:23:53 +01:00 committed by Sukru Senli
parent cb504ababe
commit 5f2b3a3f9b

View file

@ -36,6 +36,13 @@ define Package/libbbfdm/description
Test description will update later.
endef
USE_LOCAL=$(shell ls ./src/ 2>/dev/null >/dev/null && echo 1)
ifneq ($(USE_LOCAL),)
define Build/Prepare
$(CP) ./src/* $(PKG_BUILD_DIR)/
endef
endif
TARGET_CFLAGS += -DCUSTOM_PREFIX=\\\"$(CONFIG_LIBBBFDM_VENDOR_PREFIX)\\\"
TARGET_CFLAGS += \