You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
2.7 KiB

  1. VERSION_FILE=files/etc/pbx_custom_image
  2. VERSION_TAG="PBX_Image_2.0.1"
  3. #IMAGEBUILDER_URL="https://github.com/FriedZombie/OpenWrt_Attitude-Adjustment_backports/releases/download/V0.2.1/OpenWrt-ImageBuilder-opkg618-fw2-ar71xx_generic-for-linux-x86_64.tar.bz2"
  4. IMAGEBUILDER_URL="http://http://downloads.piratebox.de/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64.tar.bz2"
  5. WGET=wget
  6. DL_FILE="ImageBuilder.tar.bz2"
  7. IB_FOLDER=OpenWrt-ImageBuilder-ar71xx_generic-for-linux-x86_64
  8. #Image configuration
  9. FILES_FOLDER=../files/
  10. ################ -minimum needed-
  11. GENERAL_PACKAGES="pbxopkg 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 "
  12. $(DL_FILE):
  13. $(WGET) -c -O $(DL_FILE) $(IMAGEBUILDER_URL)
  14. $(IB_FOLDER): $(DL_FILE) $(VERSION_FILE)
  15. pbzip2 -cd $(DL_FILE) | tar -xv || tar -xvjf $(DL_FILE)
  16. echo "src/gz piratebox http://stable.openwrt.piratebox.de/all/packages" >> $(IB_FOLDER)/repositories.conf
  17. $(VERSION_FILE):
  18. mkdir -p files/etc
  19. echo $(VERSION_TAG) > $@
  20. imagebuilder: $(IB_FOLDER)
  21. %.bin:
  22. cp $(IB_FOLDER)/bin/ar71xx/$@ ./
  23. GLINET TLMR3020 TLMR3040 TLMR10U TLMR11U TLMR13U TLWR703 TLWR842 TLWR1043 :
  24. cd $(IB_FOLDER) && make image PROFILE="$@" PACKAGES=$(GENERAL_PACKAGES) FILES=$(FILES_FOLDER)
  25. ############## uncommented. We can reuse one until we need different packages
  26. #TLMR3040 :
  27. # cd $(IB_FOLDER) && make image PROFILE="$@" PACKAGES=$(GENERAL_PACKAGES) FILES=$(FILES_FOLDER)
  28. #
  29. #TLWR703 :
  30. # cd $(IB_FOLDER) && make image PROFILE="$@" PACKAGES=$(GENERAL_PACKAGES) FILES=$(FILES_FOLDER)
  31. all: imagebuilder INET MR3020 MR3040 MR10U MR11U MR13U WR703N WR842 WR1043
  32. INET: GLINET openwrt-ar71xx-generic-gl-inet-v1-squashfs-factory.bin
  33. MR3020: TLMR3020 openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin
  34. MR3040: TLMR3040 openwrt-ar71xx-generic-tl-mr3040-v1-squashfs-factory.bin openwrt-ar71xx-generic-tl-mr3040-v2-squashfs-factory.bin
  35. MR10U: TLMR10U openwrt-ar71xx-generic-tl-mr10u-v1-squashfs-factory.bin
  36. MR11U: TLMR11U openwrt-ar71xx-generic-tl-mr11u-v1-squashfs-factory.bin openwrt-ar71xx-generic-tl-mr11u-v2-squashfs-factory.bin
  37. MR13U: TLMR13U openwrt-ar71xx-generic-tl-mr13u-v1-squashfs-factory.bin
  38. WR703N: TLWR703 openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin
  39. WR842: TLWR842 openwrt-ar71xx-generic-tl-wr842n-v1-squashfs-factory.bin
  40. WR1043: TLWR1043 openwrt-ar71xx-generic-tl-wr1043nd-v1-squashfs-factory.bin openwrt-ar71xx-generic-tl-wr1043nd-v2-squashfs-factory.bin
  41. clean:
  42. -rm $(VERSION_FILE)
  43. -rm -r $(IB_FOLDER)
  44. -rm $(DL_FILE)
  45. -rm openwrt-ar71xx-generic*