[Buildroot] [PATCH 01/28] Makefile.package.in: Makes it possible to override the default extract commands
Peter Korsgaard
jacmet at uclibc.org
Thu Jul 7 21:00:25 UTC 2011
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni at free-electrons.com> writes:
Thomas> From: Allan W. Nielsen <a at awn.dk>
Thomas> When using GENTARGETS (or macroes depending on it), there is no way of
Thomas> specifying a custom extraction procedure. When using the patch one can
Thomas> simply define $(PACKAGE_NAME)_EXTRACT_CMDS which will override the
Thomas> default. If non is defined it will fall back to the default extract
Thomas> procedure.
Thomas> An example could look like this:
Thomas> === PACKAGE BEGIN ===
Thomas> FGLRX_VERSION=11-3
Thomas> FGLRX_SOURCE:=ati-driver-installer-$(FGLRX_VERSION)-x86.x86_64.run
Thomas> FGLRX_SITE:=http://www2.ati.com/drivers/linux/
Thomas> define FGLRX_EXTRACT_CMDS
Thomas> sh $(DL_DIR)/$(FGLRX_SOURCE) --extract $(@D)
Thomas> endef
Committed, thanks.
It would be good to document this in buildroot.html as well.
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list