Skip to contentSkip to conversation

Packages Post-extract pre-patch phase ?

Buildroot Mike Davies 2 participants 2 messages Jun 5, 2011

lore
Share & tools
lore
#0 lore raw

Is it possible to have a "post extract" or "pre patch" phase ?

The reason is that I have a tarball (opencv-2.2) which comes with .rej files in it. This stops buildroot dead.

I need to run some sort of command like ...

find $(LIBFOO_DIR) -name *.rej -delete

#1 lore raw

Le Sun, 05 Jun 2011 15:40:05 +0100,
Mike Davies <[email protected]> a ?crit :

Quoted 1 line

Is it possible to have a "post extract" or "pre patch" phase ?

Yes, you have the <pkg>_POST_EXTRACT_HOOKS variable for each package, which can contain a list of make macros to call after the package extraction.

See package/dropbear/dropbear.mk for an example.

The documentation should be updated to reflect the availability of this hook point. Would you volunteer to send a patch to update the documentation ?

Best regards,

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com