mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 17:01:14 +00:00
0d7cace7bd
Create the RTL838x specific Makefiles. Move CPU-type into rtl838x.mk as this is specifc to that platform. Add rtl838x subtarget into main Makefile. Signed-off-by: Birger Koblitz <git@birger-koblitz.de>
43 lines
1.1 KiB
Makefile
43 lines
1.1 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
include $(INCLUDE_DIR)/image.mk
|
|
|
|
KERNEL_LOADADDR = 0x80000000
|
|
KERNEL_ENTRY = 0x80000400
|
|
|
|
DEVICE_VARS += ZYXEL_VERS
|
|
|
|
define Build/zyxel-vers
|
|
( echo VERS;\
|
|
for hw in $(ZYXEL_VERS); do\
|
|
echo -n "V9.99($$hw.0) | ";\
|
|
date -d @$(SOURCE_DATE_EPOCH) +%m/%d/%Y;\
|
|
done ) >> $@
|
|
endef
|
|
|
|
define Device/Default
|
|
PROFILES = Default
|
|
KERNEL := kernel-bin | append-dtb | gzip | uImage gzip
|
|
KERNEL_INITRAMFS := kernel-bin | append-dtb | gzip | uImage gzip
|
|
DEVICE_DTS_DIR := ../dts-$(KERNEL_PATCHVER)
|
|
DEVICE_DTS = $$(SOC)_$(1)
|
|
IMAGES := sysupgrade.bin
|
|
IMAGE/sysupgrade.bin := append-kernel | pad-to 64k | append-rootfs | pad-rootfs | \
|
|
check-size | append-metadata
|
|
endef
|
|
|
|
# "NGE" refers to the uImage magic
|
|
define Device/netgear_nge
|
|
KERNEL := kernel-bin | append-dtb | lzma | uImage lzma
|
|
KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | uImage lzma
|
|
SOC := rtl8380
|
|
IMAGE_SIZE := 14848k
|
|
UIMAGE_MAGIC := 0x4e474520
|
|
DEVICE_VENDOR := NETGEAR
|
|
endef
|
|
|
|
include $(SUBTARGET).mk
|
|
|
|
$(eval $(call BuildImage))
|