[Buildroot] [PATCH] package/freescale-imx/firmware-imx: install the VPU firmware into a valid location

Romain Naour romain.naour at gmail.com
Wed Jan 13 21:01:03 UTC 2021


Le 13/01/2021 à 21:16, Fabio Estevam a écrit :
> On Wed, Jan 13, 2021 at 5:02 PM Romain Naour <romain.naour at gmail.com> wrote:
> 
>> What about a simlink ?
> 
> Yes, that would work.
> 
> Actually, I tried it here, but it ended up with a symlink to the host
> PC Buildroot path.
> 
> If you could give me a suggestion on how to properly implement the
> symlink in firmware-imx.mk, I would appreciate it.

Something like this ?

define FIRMWARE_IMX_INSTALL_TARGET_VPU_FW
	mkdir -p $(TARGET_DIR)/lib/firmware/vpu
	for i in $$(find $(@D)/firmware/vpu/vpu_fw_$(FIRMWARE_IMX_VPU_FW_NAME)*.bin); do \
		cp $$i $(TARGET_DIR)/lib/firmware/vpu/ ; \
		ln -sf vpu/$$(basename $$i) $(TARGET_DIR)/lib/firmware/$$(basename $$i) ; \
	done
endef

Best regards,
Romain


> 
> Thanks
> 



More information about the buildroot mailing list