|
@@ -13,8 +13,10 @@ QORIQ_RCW_LICENSE_FILES = LICENSE
|
|
|
HOST_QORIQ_RCW_DEPENDENCIES = $(BR2_PYTHON3_HOST_DEPENDENCY)
|
|
|
|
|
|
QORIQ_RCW_FILES = $(call qstrip,$(BR2_PACKAGE_HOST_QORIQ_RCW_CUSTOM_PATH))
|
|
|
+QORIQ_RCW_INTREE = $(call qstrip,$(BR2_PACKAGE_HOST_QORIQ_RCW_INTREE))
|
|
|
|
|
|
ifneq ($(QORIQ_RCW_FILES),)
|
|
|
+
|
|
|
QORIQ_RCW_INCLUDES = $(filter-out %.rcw,$(QORIQ_RCW_FILES))
|
|
|
# Get the name of the custom rcw file from the custom list
|
|
|
QORIQ_RCW_PROJECT = $(notdir $(filter %.rcw,$(QORIQ_RCW_FILES)))
|
|
@@ -54,6 +56,20 @@ endef
|
|
|
define HOST_QORIQ_RCW_INSTALL_DELIVERY_FILE
|
|
|
$(INSTALL) -D -m 0644 $(@D)/PBL.bin $(BINARIES_DIR)/PBL.bin
|
|
|
endef
|
|
|
+
|
|
|
+else ifneq ($(QORIQ_RCW_INTREE),)
|
|
|
+
|
|
|
+QORIQ_RCW_PLATFORM = $(firstword $(subst /, ,$(QORIQ_RCW_INTREE)))
|
|
|
+QORIQ_RCW_FILE_BIN = $(lastword $(subst /, ,$(QORIQ_RCW_INTREE)))
|
|
|
+
|
|
|
+define HOST_QORIQ_RCW_BUILD_CMDS
|
|
|
+ $(MAKE) -C $(@D)/$(QORIQ_RCW_PLATFORM)
|
|
|
+endef
|
|
|
+
|
|
|
+define HOST_QORIQ_RCW_INSTALL_DELIVERY_FILE
|
|
|
+ $(INSTALL) -D -m 0644 $(@D)/$(patsubst %.rcw,%.bin,$(QORIQ_RCW_INTREE)) \
|
|
|
+ $(BINARIES_DIR)/PBL.bin
|
|
|
+endef
|
|
|
endif
|
|
|
|
|
|
# Copy source files and script into $(HOST_DIR)/share/rcw/ so a developer
|