package/qoriq-mc-utils: fix target install

- The check was referencing an incorrect variable name
- In the `$(QORIQ_MC_UTILS_DPC_FILES) $(QORIQ_MC_UTILS_DPL_FILES)` case,
  the target directory needs to be created first

Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
Matthias Schiffer
2025-06-05 16:32:41 +02:00
committed by Julien Olivain
parent d48c27f1cd
commit 7966ac6058

View File

@@ -16,11 +16,12 @@ QORIQ_MC_UTILS_DPL_FILES = $(call qstrip,$(BR2_PACKAGE_QORIQ_MC_UTILS_DPL_CUSTOM
QORIQ_MC_UTILS_DPL_INTREE = $(call qstrip,$(BR2_PACKAGE_QORIQ_MC_UTILS_DPL_INTREE))
QORIQ_MC_UTILS_INSTALL_PATH = $(call qstrip,$(BR2_PACKAGE_QORIQ_MC_UTILS_TARGET_INSTALL_PATH))
ifeq ($(QORIQ_MC_UTILS_TARGET_INSTALL_PATH),)
ifeq ($(QORIQ_MC_UTILS_INSTALL_PATH),)
QORIQ_MC_UTILS_INSTALL_TARGET = NO
endif
define QORIQ_MC_UTILS_INSTALL_FILES
$(INSTALL) -d $(1)
$(foreach file, $(QORIQ_MC_UTILS_DPC_FILES) $(QORIQ_MC_UTILS_DPL_FILES), \
PATH=$(BR_PATH) dtc -I dts -O dtb $(file).dts -o $(1)/$(notdir $(file)).dtb
)