2
0

mikrotik.mk 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. define Device/mikrotik
  2. PROFILES := Default
  3. DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport
  4. BOARD_NAME := routerboard
  5. KERNEL_INITRAMFS :=
  6. KERNEL_NAME := loader-generic.elf
  7. KERNEL := kernel-bin | kernel2minor -s 2048 -e -c
  8. FILESYSTEMS := squashfs
  9. IMAGES := sysupgrade.bin
  10. IMAGE/sysupgrade.bin := sysupgrade-tar
  11. endef
  12. define Device/nand-64m
  13. DEVICE_TITLE := MikroTik RouterBoard with 64 MB NAND flash
  14. $(Device/mikrotik)
  15. KERNEL := kernel-bin | kernel2minor -s 512 -e -c
  16. endef
  17. define Device/nand-large
  18. DEVICE_TITLE := MikroTik RouterBoard with >= 128 MB NAND flash
  19. $(Device/mikrotik)
  20. KERNEL := kernel-bin | kernel2minor -s 2048 -e -c
  21. endef
  22. TARGET_DEVICES += nand-64m nand-large
  23. define Device/rb-nor-flash-16M
  24. DEVICE_TITLE := MikroTik RouterBoard with 16 MB NOR flash
  25. DEVICE_PACKAGES := rbcfg -nand-utils
  26. BLOCKSIZE := 64k
  27. IMAGE_SIZE := 16000k
  28. LOADER_TYPE := elf
  29. KERNEL_INSTALL := 1
  30. KERNEL := kernel-bin | lzma | loader-kernel | kernel2minor -s 1024 -e
  31. KERNEL_INITRAMFS := kernel-bin | lzma | loader-kernel
  32. IMAGES := sysupgrade.bin
  33. IMAGE/sysupgrade.bin = append-rootfs | pad-rootfs | combined-image | check-size $$$$(IMAGE_SIZE)
  34. endef
  35. define Device/rb-941-2nd
  36. $(Device/rb-nor-flash-16M)
  37. DEVICE_TITLE := hAP lite
  38. BOARDNAME:= rb-941-2nd
  39. endef