[Buildroot] svn commit: trunk/buildroot: package

Ulf Samuelsson ulf.samuelsson at atmel.com
Mon Mar 10 21:32:31 UTC 2008


----- Original Message ----- 
From: "Peter Korsgaard" <jacmet at uclibc.org>
To: "Ulf Samuelsson" <ulf.samuelsson at atmel.com>
Cc: "Peter Korsgaard" <jacmet at uclibc.org>; <buildroot at uclibc.org>
Sent: Monday, March 10, 2008 10:26 PM
Subject: Re: [Buildroot] svn commit: trunk/buildroot: package


>>>>>> "Ulf" == Ulf Samuelsson <ulf.samuelsson at atmel.com> writes:
> 
> Hi,
> 
> Ulf> I might be wrong, since I didn't look at the patch, but it looks
> Ulf> to me that the patch will clean out the directory if unset.
> 
> Ulf> If the switch is there, then the files should be copied to th
> Ulf> target directory.  If the switch was never there, then there
> Ulf> should not be any such files in the target directory.  If the
> Ulf> switch was there and is unset then I think the directory should
> Ulf> be cleaned out with an explicit command.
> 
> Sure, that's the nicest approach. But it also means every package .mk
> needs to get fixed. This approach basically gives the same result with
> only 4 lines or so of code.
> 
> So the basic system is here, but it can be refined by adding
> HAVE_DEVFILES support to (library) packages (and the C library) one by
> one. Once that is done this "dirty" solution can be removed.
> 
> Or we can simply decide it isn't worth it and stick with the current
> solution.
> 
> -- 
> Bye, Peter Korsgaard

Or add this to the Makefile:

nodevfiles:
            rm -rf $(TARGET_DIR)/usr/include
            find $(TARGET_DIR)/usr/lib -name '*.a' -delete

Then the user can make his own decisions.
The packages will not add any ".a" packages,
and none will be deleted, unless the user wishes them to be.

Best Regards
Ulf Samuelsson




More information about the buildroot mailing list