mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-29 13:55:31 +02:00
copy uclibc++ package from whiterussian to head
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1442 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
474116c7d6
commit
b831ba0e07
@ -13,9 +13,9 @@ PKG_CAT:=bzcat
|
|||||||
|
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
|
||||||
|
|
||||||
IPKG_LIBCXX:=$(PACKAGE_DIR)/$(PKG_NAME)_$(PKG_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk
|
include $(TOPDIR)/package/rules.mk
|
||||||
IDIR_LIBCXX:=$(PKG_BUILD_DIR)/ipkg/$(PKG_NAME)
|
|
||||||
INFO_LIBCXX:=$(IPKG_STATE_DIR)/info/$(PKG_NAME).list
|
$(eval $(call PKG_template,UCLIBCXX,uclibc++,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
||||||
|
|
||||||
UCLIBC_TARGET_ARCH:=$(shell echo $(ARCH) | sed -e s'/-.*//' \
|
UCLIBC_TARGET_ARCH:=$(shell echo $(ARCH) | sed -e s'/-.*//' \
|
||||||
-e 's/i.86/i386/' \
|
-e 's/i.86/i386/' \
|
||||||
@ -31,47 +31,28 @@ UCLIBC_TARGET_ARCH:=$(shell echo $(ARCH) | sed -e s'/-.*//' \
|
|||||||
-e 's/cris.*/cris/' \
|
-e 's/cris.*/cris/' \
|
||||||
)
|
)
|
||||||
|
|
||||||
|
$(PKG_BUILD_DIR)/.configured:
|
||||||
$(DL_DIR)/$(PKG_SOURCE):
|
|
||||||
$(SCRIPT_DIR)/download.pl $(DL_DIR) $(PKG_SOURCE) $(PKG_MD5SUM) $(PKG_SOURCE_URL)
|
|
||||||
|
|
||||||
$(PKG_BUILD_DIR)/.prepared: $(DL_DIR)/$(PKG_SOURCE)
|
|
||||||
$(PKG_CAT) $(DL_DIR)/$(PKG_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
|
||||||
$(PATCH) $(PKG_BUILD_DIR) ./patches
|
|
||||||
touch $(PKG_BUILD_DIR)/.prepared
|
|
||||||
|
|
||||||
$(PKG_BUILD_DIR)/.config: $(PKG_BUILD_DIR)/.prepared
|
|
||||||
cp ./uclibc++.config $(PKG_BUILD_DIR)/.config
|
cp ./uclibc++.config $(PKG_BUILD_DIR)/.config
|
||||||
$(SED) 's,^.*TARGET_ARCH.*,TARGET_ARCH="$(UCLIBC_TARGET_ARCH)",g' $(PKG_BUILD_DIR)/.config
|
$(SED) 's,^.*TARGET_ARCH.*,TARGET_ARCH="$(UCLIBC_TARGET_ARCH)",g' $(PKG_BUILD_DIR)/.config
|
||||||
$(SED) 's,^.*ARCH_CFLAGS.*,ARCH_CFLAGS="-mno-split-addresses $(TARGET_CFLAGS)",g' $(PKG_BUILD_DIR)/.config
|
$(SED) 's,^.*ARCH_CFLAGS.*,ARCH_CFLAGS="-mno-split-addresses $(TARGET_CFLAGS)",g' $(PKG_BUILD_DIR)/.config
|
||||||
|
touch $@
|
||||||
|
|
||||||
|
$(PKG_BUILD_DIR)/.built:
|
||||||
$(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.config
|
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||||
$(TARGET_CONFIGURE_OPTS) CROSS="$(TARGET_CROSS)"
|
$(TARGET_CONFIGURE_OPTS) CROSS="$(TARGET_CROSS)" \
|
||||||
touch $(PKG_BUILD_DIR)/.built
|
all
|
||||||
|
touch $@
|
||||||
|
|
||||||
$(STAGING_DIR)/lib/libuClibc++.so: $(PKG_BUILD_DIR)/.built
|
$(IPKG_UCLIBCXX):
|
||||||
|
install -d -m0755 $(IDIR_UCLIBCXX)/usr/lib
|
||||||
|
cp -fpR $(PKG_BUILD_DIR)/src/libuClibc++*.so* $(IDIR_UCLIBCXX)/usr/lib/
|
||||||
|
$(STRIP) $(IDIR_UCLIBCXX)/usr/lib/*.so*
|
||||||
|
mkdir -p $(PACKAGE_DIR)
|
||||||
|
$(IPKG_BUILD) $(IDIR_UCLIBCXX) $(PACKAGE_DIR)
|
||||||
|
|
||||||
|
compile: install-dev
|
||||||
|
install-dev:
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||||
|
$(TARGET_CONFIGURE_OPTS) CROSS="$(TARGET_CROSS)" \
|
||||||
DESTDIR="$(STAGING_DIR)" \
|
DESTDIR="$(STAGING_DIR)" \
|
||||||
install
|
install
|
||||||
|
|
||||||
$(IPKG_LIBCXX): $(STAGING_DIR)/lib/libuClibc++.so
|
|
||||||
$(SCRIPT_DIR)/make-ipkg-dir.sh $(IDIR_LIBCXX) ./$(PKG_NAME).control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH)
|
|
||||||
mkdir -p $(IDIR_LIBCXX)/usr/lib
|
|
||||||
cp -fpR $(PKG_BUILD_DIR)/src/libuClibc++*.so* $(IDIR_LIBCXX)/usr/lib/
|
|
||||||
$(STRIP) $(IDIR_LIBCXX)/usr/lib/*.so*
|
|
||||||
mkdir -p $(PACKAGE_DIR)
|
|
||||||
$(IPKG_BUILD) $(IDIR_LIBCXX) $(PACKAGE_DIR)
|
|
||||||
|
|
||||||
$(INFO_LIBCXX): $(IPKG_LIBCXX)
|
|
||||||
$(IPKG) install $(IPKG_LIBCXX)
|
|
||||||
|
|
||||||
source: $(DL_DIR)/$(PKG_SOURCE)
|
|
||||||
prepare: $(PKG_BUILD_DIR)/.prepared
|
|
||||||
compile: $(IPKG_LIBCXX)
|
|
||||||
install: $(INFO_LIBCXX)
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -rf $(PKG_BUILD_DIR) $(IPKG_LIBCXX)
|
|
||||||
rm -f $(STAGING_DIR)/lib/libuClibc++.so*
|
|
||||||
|
Loading…
Reference in New Issue
Block a user