Browse Source

severall fixes

tags/Auto_BB_v0.1
Matthias Strubel 7 years ago
parent
commit
fa0d10cbc6
2 changed files with 29 additions and 18 deletions
  1. +23
    -18
      Makefile
  2. +6
    -0
      README

+ 23
- 18
Makefile View File

@@ -3,35 +3,40 @@ VERSION_TAG="PBX_Image_2.0"
IMAGEBUILDER_URL="http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-i486.tar.bz2"
WGET=wget
DL_FILE="ImageBuilder.tar.bz2"
IB_FOLDER=OpenWrt-ImageBuilder-ar71xx_generic-for-linux-i486


#Image configuration
FILES_FOLDER="../files"
FILES_FOLDER=../files/
################ -minimum needed-
GENERAL_PACKAGES="kmod-usb2 kmod-usb-storage kmod-fs-vfat kmod-nls-cp437 kmod-nls-cp850 kmod-nls-iso8859-1 kmod-nls-iso8859-15 kmod-fs-ext4 block-mount kmod-loop losetup kmod-batman-adv wireless-tools kmod-lib-crc16 kmod-nls-utf8 kmod-ip6tables kmod-ipt-nat kmod-ipv6 zlib hostapd-mini iw swap-utils -ppp -ppp-mod-pppoe "
$(DL_FILE):
$(WGET) -O $(DL_FILE)
tar -xvjf $(DL_FILE)
$(DL_FILE):
$(WGET) -c -O $(DL_FILE) $(IMAGEBUILDER_URL)

$(IB_FOLDER): $(DL_FILE)
tar -xvjf $(DL_FILE)

imagebuilder: $(IB_FOLDER)


## Configuration for MR3020
MR3020: $(DL_FILE)
cd OpenWrt-Image*
## Configuration for MR3020
make image PROFILE="TLMR3020" PACKAGES="$(GENERAL_PACKAGES)" FILES_FOLDER="$(FILES_FOLDER)"
MR3020:
cd $(IB_FOLDER) && make image PROFILE="TLMR3020" PACKAGES=$(GENERAL_PACKAGES) FILES=$(FILES_FOLDER)
cp $(IB_FOLDER)/bin/ar71xx/openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin ./

MR3040:
cd $(IB_FOLDER) && make image PROFILE="TLMR3040" PACKAGES=$(GENERAL_PACKAGES) FILES=$(FILES_FOLDER)
cp $(IB_FOLDER)/bin/ar71xx/openwrt-ar71xx-generic-tl-mr3040-v1-squashfs-factory.bin ./

MR3040: $(DL_FILE)
cd OpenWrt-Image*
## Configuration for MR3020
make image PROFILE="TLMR3040" PACKAGES="$(GENERAL_PACKAGES)" FILES_FOLDER="$(FILES_FOLDER)"
WR703N:
cd $(IB_FOLDER) && make image PROFILE="TLWR703N" PACKAGES=$(GENERAL_PACKAGES) FILES=$(FILES_FOLDER)
cp $(IB_FOLDER)/bin/ar71xx/openwrt-ar71xx-generic-tl-WR703N-v1-squashfs-factory.bin ./

WR703N: $(DL_FILE)
cd OpenWrt-Image*
## Configuration for WR703N
make image PROFILE="WR703N" PACKAGES="$(GENERAL_PACKAGES)" FILES_FOLDER="$(FILES_FOLDER)"

all: MR3020 MR3040 WR703N
all: imagebuilder MR3020 MR3040 WR703N

clean:
-rm -r OpenWrt-Image*
-rm -r $(IB_FOLDER)
-rm $(DL_FILE)
-rm openwrt-ar71xx-generic*

+ 6
- 0
README View File

@@ -1,2 +1,8 @@
Scripts for creating PirateBox Images via OpenWRT's ImageBuilder

make all

or

make imagebuilder
make MR3020

Loading…
Cancel
Save