fix base-files build
authorFelix Fietkau <nbd@openwrt.org>
Tue, 19 Jul 2005 00:48:36 +0000 (00:48 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 19 Jul 2005 00:48:36 +0000 (00:48 +0000)
SVN-Revision: 1500

openwrt/package/Makefile
openwrt/package/base-files/Makefile
openwrt/package/base-files/ipkg/base-files.control [new file with mode: 0644]
openwrt/package/base-files/ipkg/libgcc.control [new file with mode: 0644]
openwrt/package/base-files/ipkg/uclibc.control [new file with mode: 0644]

index 7df1c594d40c6d27feddf626595d28b966f0b24d..45998e997a4df22e20fde6396b45f94a16fea899 100644 (file)
@@ -281,7 +281,10 @@ endif
 
 sdk-compile: $(DEV_LIBS_COMPILE) $(SDK_DEFAULT_COMPILE) openwrt-install
 
-%-prepare:
+$(STAMP_DIR):
+       mkdir -p $@
+
+%-prepare: $(STAMP_DIR)
        @[ -f $(STAMP_DIR)/.$@ ] || $(MAKE) -C $(patsubst %-prepare,%,$@) prepare
        @touch $(STAMP_DIR)/.$@
 
index fbd7b9e44c24fa0e2e731789c040b444534b5fc1..c8f8f671969c214475db6c398479388123e35ac2 100644 (file)
@@ -18,10 +18,11 @@ IPKG_GCC:=$(PACKAGE_DIR)/libgcc_$(GCC_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk
 
 PACKAGES:=$(IPKG_BASE) $(IPKG_LIBC) $(IPKG_GCC)
 
+$(PACKAGES): $(PACKAGE_DIR)
 $(PACKAGE_DIR):
-       mkdir -p $(PACKAGE_DIR)
+       mkdir -p $@
 
-$(IPKG_BASE): $(PACKAGE_DIR)
+$(IPKG_BASE):
        $(SCRIPT_DIR)/make-ipkg-dir.sh $(IDIR_BASE) ipkg/$(PKG_NAME).control $(PKG_RELEASE) $(ARCH)
        cp -a ./default/* $(IDIR_BASE)
        mkdir -p $(IDIR_BASE)/jffs
@@ -40,7 +41,7 @@ $(IPKG_BASE): $(PACKAGE_DIR)
        -grep \^BR2_SYSCONF $(TOPDIR)/.config > $(IDIR_BASE)/etc/sysconf
        $(IPKG_BUILD) $(IDIR_BASE) $(PACKAGE_DIR)
 
-$(IPKG_LIBC): $(PACKAGE_DIR)
+$(IPKG_LIBC):
        $(SCRIPT_DIR)/make-ipkg-dir.sh $(IDIR_LIBC) ipkg/uclibc.control $(LIBC_VERSION)-$(PKG_RELEASE) $(ARCH)
        mkdir -p $(IDIR_LIBC)/lib
        cp -a $(STAGING_DIR)/lib/ld-uClibc*.so* $(IDIR_LIBC)/lib/
@@ -50,7 +51,7 @@ $(IPKG_LIBC): $(PACKAGE_DIR)
        -$(STRIP) $(IDIR_LIBC)/lib/*
        $(IPKG_BUILD) $(IDIR_LIBC) $(PACKAGE_DIR)
 
-$(IPKG_GCC): $(PACKAGE_DIR)
+$(IPKG_GCC):
        $(SCRIPT_DIR)/make-ipkg-dir.sh $(IDIR_GCC) ipkg/libgcc.control $(GCC_VERSION)-$(PKG_RELEASE) $(ARCH)
        mkdir -p $(IDIR_GCC)/lib
        cp -a $(STAGING_DIR)/lib/libgcc*.so* $(IDIR_GCC)/lib/
@@ -62,3 +63,5 @@ compile: $(PACKAGES)
 install: compile
        mkdir -p $(TARGET_DIR)
        $(IPKG) install $(PACKAGES)
+clean:
+       rm -rf $(IDIR_BASE) $(IDIR_LIBC) $(IDIR_GCC)
diff --git a/openwrt/package/base-files/ipkg/base-files.control b/openwrt/package/base-files/ipkg/base-files.control
new file mode 100644 (file)
index 0000000..acaa6c5
--- /dev/null
@@ -0,0 +1,6 @@
+Package: base-files
+Priority: optional
+Section: net
+Maintainer: Felix Fietkau <nbd@vd-s.ath.cx>
+Source: buildroot internal
+Description: OpenWrt filesystem structure and scripts
diff --git a/openwrt/package/base-files/ipkg/libgcc.control b/openwrt/package/base-files/ipkg/libgcc.control
new file mode 100644 (file)
index 0000000..141d88c
--- /dev/null
@@ -0,0 +1,7 @@
+Package: libgcc
+Priority: optional
+Section: net
+Maintainer: Felix Fietkau <nbd@vd-s.ath.cx>
+Source: buildroot internal
+Depends: base-files
+Description: GCC support library
diff --git a/openwrt/package/base-files/ipkg/uclibc.control b/openwrt/package/base-files/ipkg/uclibc.control
new file mode 100644 (file)
index 0000000..360a3b5
--- /dev/null
@@ -0,0 +1,7 @@
+Package: uclibc
+Priority: optional
+Section: net
+Maintainer: Felix Fietkau <nbd@vd-s.ath.cx>
+Source: buildroot internal
+Depends: base-files, libgcc
+Description: Standard C library for embedded Linux systems