[Buildroot] [PATCH v4] New package: linux-firmware

Peter Korsgaard jacmet at uclibc.org
Thu Jan 26 19:15:22 UTC 2012


>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni at free-electrons.com> writes:

Hi,

 >> That won't work as cp doesn't create the destination directories -
 >> install -D is also not really good as that doesn't handle symlinks,
 >> so I think the best approach is to use tar.

 Thomas> What about:

 Thomas> 	mkdir -p $(dirname $(TARGET_DIR)/lib/firmware/$$i)
 Thomas>  	cp -af $(@D)/$$i $(TARGET_DIR)/lib/firmware/$$i

That would work as well, but
     tar c -C srcdir files | tar x -C destdir

Is imho simpler.

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list