[Buildroot] [PATCH 05/18] boa: convert to autotargets
Peter Korsgaard
jacmet at uclibc.org
Sun Sep 26 22:04:09 UTC 2010
>>>>> "Martin" == Martin Banky <Martin.Banky at gmail.com> writes:
Martin> Peter,
Martin> Sorry, I missed that when I was putting the patch set together. I meant to
Martin> merge the two, when I was cherry picking them into a new branch. It was the end
Martin> of my night when I put this together.
No problem.
Martin> One question, does the stripping happen automatically for
Martin> gentargets? I was under the impression that you had to specify
Martin> it. I'm still trying to get a grasp on all the different things
Martin> that happen behind the scenes.
Yes, it happens globally just before building the filesystems in the
toplevel Makefile:
target-finalize:
ifeq ($(BR2_HAVE_DEVFILES),y)
( scripts/copy.sh $(STAGING_DIR) $(TARGET_DIR) )
else
rm -rf $(TARGET_DIR)/usr/include $(TARGET_DIR)/usr/lib/pkgconfig $(TARGET_DIR)/usr/share/aclocal
find $(TARGET_DIR)/lib \( -name '*.a' -o -name '*.la' \) -print0 | xargs -0 rm -f
find $(TARGET_DIR)/usr/lib \( -name '*.a' -o -name '*.la' \) -print0 | xargs -0 rm -f
endif
ifneq ($(BR2_PACKAGE_GDB),y)
rm -rf $(TARGET_DIR)/usr/share/gdb
endif
ifneq ($(BR2_HAVE_DOCUMENTATION),y)
rm -rf $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/man
rm -rf $(TARGET_DIR)/usr/info $(TARGET_DIR)/usr/share/info
rm -rf $(TARGET_DIR)/usr/doc $(TARGET_DIR)/usr/share/doc
rm -rf $(TARGET_DIR)/usr/share/gtk-doc
endif
find $(TARGET_DIR) -type f -perm +111 | xargs $(STRIPCMD) 2>/dev/null || true
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list