]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Removing strip from stage packages.
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 11 Jun 2009 10:42:35 +0000 (12:42 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 11 Jun 2009 10:42:35 +0000 (12:42 +0200)
lfs/strip
make.sh

index fdef25fb9957bb5f2f233172828abd6f43ff5aff..d0070ec6f84d653d8c5248b9b711ddc39b0e0121 100644 (file)
--- a/lfs/strip
+++ b/lfs/strip
@@ -42,21 +42,12 @@ DEPS       =
 
 URL        =
 LICENSE    =
-SHORT_DESC = This script strips the whole system.
+SHORT_DESC = This script strips the toolchain.
 
 define LONG_DESC
-       This script strips the whole system.
+       This script strips the toolchain.
 endef
 
-WHAT       = -mount -type f -not -path '.$(TOOLS_DIR)*' \
-       -not -path './tmp*' -not -path './usr/src*' -not -path './dev*' \
-       -not -path './proc*' -not -path './sys*' -not -name '*.h' \
-       -not -name '*.txt' -not -name '*.m4' -not -name '*.c' -not -name '*.pl' \
-       -not -name '*.py' -not -name '*.sh' -not -name '*.bash' \
-       -not -name '*.info' -not -name '*.gz' -not -name '*.bz2' \
-       -not -name '*.a' -not -name '*.la' -not -name '*.mo' -not -name '*.ipp' \
-       -not -name '*.hpp'
-
 ###############################################################################
 # Top-level Rules
 ###############################################################################
@@ -81,8 +72,6 @@ $(objects):
 ###############################################################################
 
 $(OBJECT): $(objects)
-
-ifeq "$(STAGE)" "toolchain"
        ## Strip debugging symbols
        for f in $$(find $(TOOLS_DIR)/ -type f \( -perm -0100 -or -perm -0010 -or -perm -0001 \) -exec file {} \; | \
                grep -v ' shared object,' | \
@@ -102,31 +91,3 @@ ifeq "$(STAGE)" "toolchain"
                $(TOOLS_DIR)/share/locale/* \
                $(TOOLS_DIR)/var
        chown -R root:root $(LFS)$(TOOLS_DIR)
-endif
-
-ifeq "$(STAGE)" "packages"
-       ## If the pyc and pyo files are the same, we can hardlink them
-       for pyc in $$(find $(LFS)/usr/lib/python* -type f -name "*.pyc"); do \
-               pyo=$$(echo "$$pyc" | sed "s/.pyc$$/.pyo/"); \
-               if cmp -s "$$pyc" "$$pyo"; then \
-                       ln -f "$$pyc" "$$pyo"; \
-               fi; \
-       done
-
-       ## Strip debugging symbols
-       cd $(LFS) && \
-       for f in $$($(TOOLS_DIR)/bin/find $(WHAT) -type f \
-                       \( -perm -0100 -or -perm -0010 -or -perm -0001 \) -exec file {} \; | \
-               grep -v ' shared object,' | \
-               sed -n -e 's/^\(.*\):[  ]*ELF.*, not stripped/\1/p'); do \
-               $(TOOLS_DIR)/bin/strip --strip-debug "$$f" || :; \
-       done
-
-       ## Strip unneeded symbols
-       cd $(LFS) && \
-       for f in $$($(TOOLS_DIR)/bin/find $(WHAT) -a -exec file {} \; | \
-               grep ' shared object,' | \
-               sed -n -e 's/^\(.*\):[  ]*ELF.*, not stripped/\1/p'); do \
-               $(TOOLS_DIR)/bin/strip --strip-unneeded "$$f"; \
-       done
-endif
diff --git a/make.sh b/make.sh
index 3f311a55c6d4809a46e49a40f876e446a6711b57..404741e8dda53291f9b1fb687250fdd31c6f9986 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -460,7 +460,6 @@ packages_build() {
 
        build_spy stage ${STAGE}
 
-       toolchain_make strip
        ipfire_make quality-agent
 
        # Generate ChangeLog