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)/.$@
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
-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/
-$(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/
install: compile
mkdir -p $(TARGET_DIR)
$(IPKG) install $(PACKAGES)
+clean:
+ rm -rf $(IDIR_BASE) $(IDIR_LIBC) $(IDIR_GCC)
--- /dev/null
+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