X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/3f46f623eb90e09fea5f79dcf50ca72d0b16259e..54da0f9e4ba892d2613d4f0d0c4bf4eecdcfd0a4:/obsolete-buildroot/Makefile?ds=sidebyside diff --git a/obsolete-buildroot/Makefile b/obsolete-buildroot/Makefile index cd7e77913..0b67b1539 100644 --- a/obsolete-buildroot/Makefile +++ b/obsolete-buildroot/Makefile @@ -28,7 +28,7 @@ # ############################################################# -SNAPSHOT:=20040531 +SNAPSHOT:=20040807 ARCH:=mipsel USE_UCLIBC_SNAPSHOT:=$(SNAPSHOT) @@ -95,7 +95,9 @@ INSTALL_LIBGCJ:=false # The list of stuff to build for the target filesystem # ############################################################# -TARGETS:=gcc3_3 openwrt-base openwrt-code.bin +TARGETS:=host-sed openwrt-code.bin + +PACKAGES:=oidentd iproute2 sched-modules wshaper zlib openssl openssh pppoecd dropbear ############################################################# # @@ -146,7 +148,6 @@ TARGET_CROSS=$(STAGING_DIR)/bin/$(OPTIMIZE_FOR_CPU)-linux-uclibc- TARGET_CC=$(TARGET_CROSS)gcc STRIP=$(TARGET_CROSS)strip --remove-section=.comment --remove-section=.note - HOST_ARCH:=$(shell $(HOSTCC) -dumpmachine | sed -e s'/-.*//' \ -e 's/sparc.*/sparc/' \ -e 's/arm.*/arm/g' \ @@ -176,14 +177,26 @@ else DISABLE_NLS:=--disable-nls endif - all: world TARGETS_CLEAN:=$(patsubst %,%-clean,$(TARGETS)) TARGETS_SOURCE:=$(patsubst %,%-source,$(TARGETS)) TARGETS_DIRCLEAN:=$(patsubst %,%-dirclean,$(TARGETS)) -world: $(DL_DIR) $(BUILD_DIR) $(STAGING_DIR) $(TARGET_DIR) $(TARGETS) + +PACKAGES_IPK:=$(patsubst %,%-ipk,$(PACKAGES)) +OPENWRT_IPK_DIR=$(SOURCE_DIR)/openwrt/ipkg + +world: $(DL_DIR) $(TARGETS_SOURCE) $(BUILD_DIR) $(STAGING_DIR) $(TARGET_DIR) $(TARGETS) + @echo "ALL DONE." + +packages: ipkg-utils $(PACKAGES_IPK) + -@mkdir -p $(BASE_DIR)/packages + { \ + cd $(BASE_DIR)/packages; \ + mv $(BUILD_DIR)/*.ipk .; \ + $(IPKG_MAKE_INDEX) . > Packages; \ + } @echo "ALL DONE." .PHONY: all world clean dirclean distclean source $(TARGETS) \ @@ -212,11 +225,9 @@ $(STAGING_DIR): ln -fs ../$(REAL_GNU_TARGET_NAME)/include $(STAGING_DIR)/usr/include -$(TARGET_DIR): $(DL_DIR)/$(OPENWRT_ROOT_SKEL) +$(TARGET_DIR): rm -rf $(TARGET_DIR) - #zcat $(SOURCE_DIR)/skel.tar.gz | tar -C $(BUILD_DIR) -xf - - zcat $(DL_DIR)/$(OPENWRT_ROOT_SKEL) | tar -C $(BUILD_DIR) -xf - - #cp -a $(SOURCE_DIR)/target_skeleton/* $(TARGET_DIR)/ + cp -a $(SOURCE_DIR)/openwrt/root/ $(TARGET_DIR) -find $(TARGET_DIR) -type d -name CVS -exec rm -rf {} \; > /dev/null 2>&1 source: $(TARGETS_SOURCE) @@ -228,11 +239,13 @@ source: $(TARGETS_SOURCE) ############################################################# clean: rm -rf $(TOOL_BUILD_DIR) $(BUILD_DIR) $(IMAGE) \ + $(BASE_DIR)/packages \ openwrt-linux.trx openwrt-g-code.bin openwrt-gs-code.bin \ openwrt-kmodules.tar.bz2 dirclean: $(TARGETS_DIRCLEAN) rm -rf $(TARGET_DIR) $(STAGING_DIR) $(IMAGE) \ + $(BASE_DIR)/packages \ openwrt-linux.trx openwrt-g-code.bin openwrt-gs-code.bin \ openwrt-kmodules.tar.bz2