mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 14:37:57 +00:00
08705d4481
Add support for NEC Aterm series devices based on Atheros AR9344. The following devices have almost the same hardware, so the same U-Boot binary can be used for them. - NEC Aterm WR8750N - NEC Aterm WR9500N - NEC Aterm WG600HP By the way, on NetBSD-based NEC Aterm devices, only 0x20000 (128KiB) is available for a bootloader on the flash chip and that limitation is too small for mainline U-Boot with the default options. So many features/commands not required for booting OpenWrt and recoverying are disabled on that devices, like the followings. - networking support - FIT support - all decompression methods support etc... Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com> Link: https://github.com/openwrt/openwrt/pull/15432 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
40 lines
960 B
Makefile
40 lines
960 B
Makefile
include $(TOPDIR)/rules.mk
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
PKG_VERSION:=2024.07
|
|
PKG_HASH:=f591da9ab90ef3d6b3d173766d0ddff90c4ed7330680897486117df390d83c8f
|
|
|
|
UBOOT_USE_INTREE_DTC:=1
|
|
|
|
include $(INCLUDE_DIR)/u-boot.mk
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
define U-Boot/Default
|
|
BUILD_TARGET:=ath79
|
|
BUILD_SUBTARGET:=generic
|
|
UBOOT_IMAGE:=u-boot.bin
|
|
UBOOT_CONFIG:=ap121
|
|
HIDDEN:=1
|
|
endef
|
|
|
|
define U-Boot/ar9344_nec_aterm
|
|
NAME:=NEC Aterm series (AR9344)
|
|
BUILD_SUBTARGET:= tiny
|
|
BUILD_DEVICES:=nec_wg600hp nec_wr8750n nec_wr9500n
|
|
UBOOT_CONFIG:=nec_ar9344_aterm
|
|
endef
|
|
|
|
UBOOT_TARGETS := ar9344_nec_aterm
|
|
|
|
# don't stage files to bindir, let target/linux/ath79/image/*.mk do that
|
|
define Package/u-boot/install
|
|
endef
|
|
|
|
define Build/InstallDev
|
|
$(INSTALL_DIR) $(STAGING_DIR_IMAGE)
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/$(UBOOT_IMAGE) $(STAGING_DIR_IMAGE)/$(BUILD_VARIANT)-$(UBOOT_IMAGE)
|
|
endef
|
|
|
|
$(eval $(call BuildPackage/U-Boot))
|