Explorar o código

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>
Matthias Schiffer hai 2 meses
pai
achega
7966ac6058
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      package/qoriq-mc-utils/qoriq-mc-utils.mk

+ 2 - 1
package/qoriq-mc-utils/qoriq-mc-utils.mk

@@ -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
 	)