From: ninevoltz at uclibc.org <ninevoltz@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot: package
Date: Mon, 10 Mar 2008 08:22:43 -0700 (PDT) [thread overview]
Message-ID: <20080310152243.544A212C5F4@busybox.net> (raw)
Author: ninevoltz
Date: 2008-03-10 08:22:43 -0700 (Mon, 10 Mar 2008)
New Revision: 21282
Log:
added dev files in target option
Modified:
trunk/buildroot/Config.in
trunk/buildroot/Makefile
trunk/buildroot/package/Makefile.autotools.in
Changeset:
Modified: trunk/buildroot/Config.in
===================================================================
--- trunk/buildroot/Config.in 2008-03-10 15:15:57 UTC (rev 21281)
+++ trunk/buildroot/Config.in 2008-03-10 15:22:43 UTC (rev 21282)
@@ -239,6 +239,13 @@
If you say n here, your target will not contain any
infopage.
+config BR2_TARGET_DEV_FILES
+ bool "Development files in target filesystem"
+ default n
+ help
+ Install headers and static libraries in the
+ target filesystem
+
source package/gnuconfig/Config.in
endmenu
Modified: trunk/buildroot/Makefile
===================================================================
--- trunk/buildroot/Makefile 2008-03-10 15:15:57 UTC (rev 21281)
+++ trunk/buildroot/Makefile 2008-03-10 15:22:43 UTC (rev 21282)
@@ -245,7 +245,7 @@
# target stuff is last so it can override anything else
include target/Makefile.in
-TARGETS+=erase-fakeroots
+TARGETS+=erase-fakeroots target-devfiles
TARGETS_CLEAN:=$(patsubst %,%-clean,$(TARGETS))
TARGETS_SOURCE:=$(patsubst %,%-source,$(TARGETS) $(BASE_TARGETS))
@@ -317,6 +317,21 @@
erase-fakeroots:
rm -f $(PROJECT_BUILD_DIR)/.fakeroot*
+target-devfiles:
+ifeq ($(strip $(BR2_TARGET_DEV_FILES)),y)
+ cp -a $(STAGING_DIR)/usr/include $(TARGET_DIR)/usr
+ cp $(STAGING_DIR)/usr/lib/*.a $(TARGET_DIR)/usr/lib
+ cp $(STAGING_DIR)/lib/*.a $(TARGET_DIR)/lib
+ cp $(STAGING_DIR)/usr/lib/*.la $(TARGET_DIR)/usr/lib
+ cp $(STAGING_DIR)/lib/*.la $(TARGET_DIR)/lib
+else
+ rm -rf $(TARGET_DIR)/usr/include
+ find $(TARGET_DIR)/usr/lib -name '*.a' -delete
+ find $(TARGET_DIR)/lib -name '*.a' -delete
+ find $(TARGET_DIR)/usr/lib -name '*.la' -delete
+ find $(TARGET_DIR)/lib -name '*.la' -delete
+endif
+
source: $(TARGETS_SOURCE) $(HOST_SOURCE)
_source-check:
Modified: trunk/buildroot/package/Makefile.autotools.in
===================================================================
--- trunk/buildroot/package/Makefile.autotools.in 2008-03-10 15:15:57 UTC (rev 21281)
+++ trunk/buildroot/package/Makefile.autotools.in 2008-03-10 15:22:43 UTC (rev 21282)
@@ -230,10 +230,6 @@
$(if $(BR2_HAVE_INCLUDES),,for d in include; do \
rm -rf $(TARGET_DIR)/$$d $(TARGET_DIR)/usr/$$d; \
done)
- find $(TARGET_DIR) -name '*.la' -delete
- find $(TARGET_DIR)/lib -name '*.a' -delete
- find $(TARGET_DIR)/usr/lib -name '*.a' -delete
-
touch $@
$(BUILD_DIR)/%/.stamp_cleaned:
next reply other threads:[~2008-03-10 15:22 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-10 15:22 ninevoltz at uclibc.org [this message]
2008-03-10 16:24 ` [Buildroot] svn commit: trunk/buildroot: package Peter Korsgaard
2008-03-10 20:20 ` Ulf Samuelsson
2008-03-10 20:33 ` Peter Korsgaard
2008-03-10 21:17 ` Ulf Samuelsson
2008-03-10 21:26 ` Peter Korsgaard
2008-03-10 21:32 ` Ulf Samuelsson
2008-03-10 23:24 ` Thiago A. Corrêa
2008-03-11 8:11 ` Ulf Samuelsson
-- strict thread matches above, loose matches on Subject: below --
2008-11-05 10:41 egtvedt at uclibc.org
2008-10-20 11:32 jacmet at uclibc.org
2008-07-24 13:38 jacmet at uclibc.org
2008-06-01 17:58 antab at uclibc.org
2008-03-12 13:07 ninevoltz at uclibc.org
2007-10-18 12:38 ulf at uclibc.org
2007-10-07 18:23 ulf at uclibc.org
2007-10-07 18:20 ` Bernhard Fischer
2007-10-07 22:58 ` Ulf Samuelsson
2007-09-17 21:50 aldot at uclibc.org
2007-07-31 18:06 aldot at uclibc.org
2007-07-20 7:34 ulf at uclibc.org
2007-06-28 10:47 aldot at uclibc.org
2006-07-18 15:59 andersen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080310152243.544A212C5F4@busybox.net \
--to=ninevoltz@uclibc.org \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox