From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ulf Samuelsson Date: Wed, 11 Jun 2008 07:37:08 +0200 Subject: [Buildroot] Q: Modifying package builds? References: Message-ID: <00c301c8cb8e$aaa42da0$090514ac@atmel.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net > **My primary question(s) for this group is**: How can I change the > configuration of packages before they are built? The build of a package is goverened by /packages//.mk Ensure that this file contains the target: -unpacked: -source The target should be completed when the package has been decompressed in "build_arm/" and any patched present in "/packages//" has been applied. Unpack and apply the existing patches with: $ make -unpacked $ cd build_arm $ mv -0rig $ cd .. $ make -unpacked Now you have both "build_arm/" and "build_arm/-0rig" Make any modifications to "build_arm/" and create a patch $ cd build_arm $ diff -urN -0rig > -###.patch $ mv -###.patch ../packages/ "###" should ensure that the new patch is applied after all existing patches. This will handle one package at a time. It might be a good idea to have a generic target which unpacks and patches all packages but I am not aware that this exist and can't check right now. Most of the packages support "make source", but very few support "make unpacked". Best Regards Ulf Samuelsson