X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/3195575d366ffb8ceeb65296bcc29b1a514013cf..61994097f2eb2a14811bfbf2f5e3b4c4449021d7:/package/base-files/Makefile?ds=inline diff --git a/package/base-files/Makefile b/package/base-files/Makefile index 7c0a4c9e1..eadfb9b15 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -13,7 +13,7 @@ PKG_NAME:=base-files PKG_RELEASE:=8 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME) -PKG_FILE_DEPEND:=$(PLATFORM_DIR) +PKG_FILE_DEPEND:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/ REV:=$(shell LANG=C svn info | awk '/^Revision:/ { print$$2 }' ) ifeq ($(REV),) @@ -72,6 +72,7 @@ endef define Package/libgcc $(call Package/gcc/Default) TITLE:=GCC support library + DEPENDS:=@!LINUX_2_6_AVR32 endef define Package/libssp @@ -79,6 +80,13 @@ define Package/libssp TITLE:=GCC support library endef +define Package/libstdcpp + $(call Package/gcc/Default) + NAME:=libstdc++ + TITLE:=GNU Standard C++ Library v3 + DEPENDS:=@!NATIVE_TOOLCHAIN&&@INSTALL_LIBSTDCPP +endef + define Package/uclibc/Default SECTION:=libs CATEGORY:=Base system @@ -97,16 +105,6 @@ define Package/uclibc TITLE:=C library embedded systems endef -define Package/ldd - $(call Package/uclibc/Default) - TITLE:=LDD trace utility -endef - -define Package/ldconfig - $(call Package/uclibc/Default) - TITLE:=Shared library path configuration -endef - define Build/Prepare mkdir -p $(PKG_BUILD_DIR) endef @@ -120,6 +118,9 @@ endef define Package/base-files$(TARGET)/install $(CP) ./files/* $(1)/ + if [ -d $(GENERIC_PLATFORM_DIR)/base-files/. ]; then \ + $(CP) $(GENERIC_PLATFORM_DIR)/base-files/* $(1)/; \ + fi if [ -d $(PLATFORM_DIR)/base-files/default/. ]; then \ $(CP) $(PLATFORM_DIR)/base-files/default/* $(1)/; \ fi @@ -133,7 +134,7 @@ define Package/base-files$(TARGET)/install mkdir -p $(1)/dev mkdir -p $(1)/etc/crontabs mkdir -p $(1)/jffs - mkdir -p $(1)/lib + mkdir -p $(1)/lib/firmware mkdir -p $(1)/mnt mkdir -p $(1)/proc mkdir -p $(1)/tmp @@ -167,6 +168,11 @@ ifeq ($(word 1,$(subst ., ,$(LIBGCC_VERSION))),4) endef endif +define Package/libstdcpp/install + $(INSTALL_DIR) $(1)/lib + $(CP) $(STAGING_DIR)/lib/libstdc++.so.* $(1)/lib/ +endef + define Package/libpthread/install $(INSTALL_DIR) $(1)/lib $(CP) $(STAGING_DIR)/lib/libpthread.so.* $(1)/lib/ @@ -198,8 +204,6 @@ endif $(eval $(call BuildPackage,base-files$(TARGET))) $(eval $(call BuildPackage,libgcc)) $(eval $(call BuildPackage,libssp)) +$(eval $(call BuildPackage,libstdcpp)) $(eval $(call BuildPackage,libpthread)) $(eval $(call BuildPackage,uclibc)) -$(eval $(call BuildPackage,ldd)) -$(eval $(call BuildPackage,ldconfig)) -