From 1d4d51f45c539def59da3fbaa2f028f0bfc42a42 Mon Sep 17 00:00:00 2001 From: OpenWrt Development Date: Sun, 14 Aug 2005 18:25:11 +0000 Subject: [PATCH] This commit was manufactured by cvs2svn to create branch 'whiterussian'. SVN-Revision: 1670 --- openwrt/target/linux/imagebuilder/Makefile | 42 +++++++++++++++++++ .../linux/imagebuilder/lists/default.ar7-2.4 | 25 +++++++++++ .../linux/imagebuilder/lists/default.brcm-2.4 | 23 ++++++++++ .../linux/imagebuilder/lists/micro.ar7-2.4 | 18 ++++++++ .../linux/imagebuilder/lists/micro.brcm-2.4 | 19 +++++++++ .../linux/imagebuilder/lists/pptp.brcm-2.4 | 23 ++++++++++ 6 files changed, 150 insertions(+) create mode 100644 openwrt/target/linux/imagebuilder/Makefile create mode 100644 openwrt/target/linux/imagebuilder/lists/default.ar7-2.4 create mode 100644 openwrt/target/linux/imagebuilder/lists/default.brcm-2.4 create mode 100644 openwrt/target/linux/imagebuilder/lists/micro.ar7-2.4 create mode 100644 openwrt/target/linux/imagebuilder/lists/micro.brcm-2.4 create mode 100644 openwrt/target/linux/imagebuilder/lists/pptp.brcm-2.4 diff --git a/openwrt/target/linux/imagebuilder/Makefile b/openwrt/target/linux/imagebuilder/Makefile new file mode 100644 index 0000000000..8da50bdd78 --- /dev/null +++ b/openwrt/target/linux/imagebuilder/Makefile @@ -0,0 +1,42 @@ +default: clean all + +TOPDIR:=${shell pwd} +export TOPDIR +IB:=1 +export IB +include ./rules.mk + +LINUX_BUILD_DIR:=$(BUILD_DIR)/linux-$(KERNEL)-$(BOARD) +IPKG_KERNEL:=IPKG_TMP=$(BUILD_DIR)/tmp IPKG_INSTROOT=$(LINUX_BUILD_DIR)/root IPKG_CONF_DIR=$(LINUX_BUILD_DIR) $(SCRIPT_DIR)/ipkg -force-defaults -force-depends + +define image_template + +all: all-$(1)-$(2) + +all-$(1)-$(2): + @for listfile in ./lists/*.$(1)-$(2); do \ + $(MAKE) -s `echo $$$$listfile | sed 's,.*lists/\(.*\).$(1)-$(2),BOARD=$(1) KERNEL=$(2) LIST=\1,'` build; \ + done +endef + +include ./kernel.mk + +clean: + @rm -rf $(LINUX_BUILD_DIR)/root* + @rm -rf $(BIN_DIR) +all: + +build: + echo + echo '### BUILDING IMAGE FROM lists/$(LIST).$(BOARD)-$(KERNEL)' + echo + rm -rf $(LINUX_BUILD_DIR)/root* + mkdir -p $(BIN_DIR)/$(LIST) + mkdir -p $(LINUX_BUILD_DIR)/tmp + mkdir -p $(LINUX_BUILD_DIR)/root + echo -e 'dest root /\noption offline_root $(LINUX_BUILD_DIR)/root' > $(LINUX_BUILD_DIR)/ipkg.conf + $(IPKG_KERNEL) install $(BUILD_DIR)/linux-$(KERNEL)-$(BOARD)/kernel[-_]*.ipk + for package in `cat lists/$(LIST).$(BOARD)-$(KERNEL)`; do \ + $(IPKG_KERNEL) install `ls packages/$${package}_*`; \ + done + $(MAKE) -S -C image KERNEL="$(KERNEL)" BOARD="$(BOARD)" BIN_DIR="$(BIN_DIR)/$(LIST)" install diff --git a/openwrt/target/linux/imagebuilder/lists/default.ar7-2.4 b/openwrt/target/linux/imagebuilder/lists/default.ar7-2.4 new file mode 100644 index 0000000000..86c159c099 --- /dev/null +++ b/openwrt/target/linux/imagebuilder/lists/default.ar7-2.4 @@ -0,0 +1,25 @@ +base-files +base-files-ar7 +bridge +busybox +dnsmasq +dropbear +ipkg +iptables +kmod-cpmac +kmod-atm +kmod-pppoatm +kmod-sangam-atm-annexb +kmod-ppp +kmod-pppoe +kmod-wlcompat +libgcc +linux-atm +mtd +nvram +ppp +ppp-mod-pppoe +uclibc +wireless-tools +wificonf +zlib diff --git a/openwrt/target/linux/imagebuilder/lists/default.brcm-2.4 b/openwrt/target/linux/imagebuilder/lists/default.brcm-2.4 new file mode 100644 index 0000000000..91236cbaf6 --- /dev/null +++ b/openwrt/target/linux/imagebuilder/lists/default.brcm-2.4 @@ -0,0 +1,23 @@ +base-files +base-files-brcm +bridge +busybox +dnsmasq +dropbear +ipkg +iptables +kmod-brcm-et +kmod-brcm-wl +kmod-diag +kmod-ppp +kmod-pppoe +kmod-wlcompat +libgcc +mtd +nvram +ppp +ppp-mod-pppoe +uclibc +wireless-tools +wificonf +zlib diff --git a/openwrt/target/linux/imagebuilder/lists/micro.ar7-2.4 b/openwrt/target/linux/imagebuilder/lists/micro.ar7-2.4 new file mode 100644 index 0000000000..dfaaa6e8d0 --- /dev/null +++ b/openwrt/target/linux/imagebuilder/lists/micro.ar7-2.4 @@ -0,0 +1,18 @@ +base-files +base-files-ar7 +bridge +busybox +dnsmasq +dropbear +ipkg +iptables +kmod-cpmac +kmod-wlcompat +libgcc +linux-atm +mtd +nvram +uclibc +wireless-tools +wificonf +zlib diff --git a/openwrt/target/linux/imagebuilder/lists/micro.brcm-2.4 b/openwrt/target/linux/imagebuilder/lists/micro.brcm-2.4 new file mode 100644 index 0000000000..078884312e --- /dev/null +++ b/openwrt/target/linux/imagebuilder/lists/micro.brcm-2.4 @@ -0,0 +1,19 @@ +base-files +base-files-brcm +bridge +busybox +dnsmasq +dropbear +ipkg +iptables +kmod-brcm-et +kmod-brcm-wl +kmod-diag +kmod-wlcompat +libgcc +mtd +nvram +uclibc +wireless-tools +wificonf +zlib diff --git a/openwrt/target/linux/imagebuilder/lists/pptp.brcm-2.4 b/openwrt/target/linux/imagebuilder/lists/pptp.brcm-2.4 new file mode 100644 index 0000000000..280b21eced --- /dev/null +++ b/openwrt/target/linux/imagebuilder/lists/pptp.brcm-2.4 @@ -0,0 +1,23 @@ +base-files +base-files-brcm +bridge +busybox +dnsmasq +dropbear +ipkg +iptables +kmod-brcm-et +kmod-brcm-wl +kmod-diag +kmod-ppp +kmod-gre +kmod-wlcompat +libgcc +mtd +nvram +ppp +pptp +uclibc +wireless-tools +wificonf +zlib -- 2.30.2