mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 18:47:06 +00:00
26 lines
924 B
Makefile
26 lines
924 B
Makefile
|
DEVICE_VARS += NEC_FW_TYPE
|
||
|
|
||
|
define Build/nec-usbaterm-fw
|
||
|
$(STAGING_DIR_HOST)/bin/nec-usbatermfw $@.new -t $(NEC_FW_TYPE) $(1)
|
||
|
mv $@.new $@
|
||
|
endef
|
||
|
|
||
|
define Device/nec-netbsd-aterm
|
||
|
DEVICE_VENDOR := NEC
|
||
|
LOADER_TYPE := bin
|
||
|
KERNEL := kernel-bin | append-dtb | lzma | loader-kernel | uImage none
|
||
|
KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | loader-kernel | uImage none
|
||
|
ARTIFACTS := uboot.bin
|
||
|
ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),)
|
||
|
COMPILE := loader-$(1).bin
|
||
|
COMPILE/loader-$(1).bin := loader-okli-compile
|
||
|
ARTIFACTS += initramfs-factory.bin
|
||
|
ARTIFACT/initramfs-factory.bin := append-image-stage initramfs-kernel.bin | \
|
||
|
pad-to 4 skip=16 | \
|
||
|
nec-usbaterm-fw -f 0x0003 -d $$(KDIR)/loader-$(1).bin -d $$$$@ | check-size
|
||
|
endif
|
||
|
UBOOT_PATH := $$(STAGING_DIR_IMAGE)/$$(SOC)_nec_aterm-u-boot.bin
|
||
|
ARTIFACT/uboot.bin := append-uboot | check-size 128k
|
||
|
DEVICE_PACKAGES := kmod-usb2 -uboot-envtools
|
||
|
endef
|