Parcourir la source

realtek: move Netgear recipe to subtarget Makefile

There seems to be no reason to have the Netgear switches as part of
the main Makefile. Move it to its subtarget-specific Makefile since
it is only applicable there.

Signed-off-by: Olliver Schinagl <[email protected]>
[update commit message]
Signed-off-by: Sander Vanheule <[email protected]>
Olliver Schinagl il y a 3 ans
Parent
commit
d2fa68379f
2 fichiers modifiés avec 10 ajouts et 10 suppressions
  1. 0 10
      target/linux/realtek/image/Makefile
  2. 10 0
      target/linux/realtek/image/rtl838x.mk

+ 0 - 10
target/linux/realtek/image/Makefile

@@ -90,16 +90,6 @@ define Device/Default
 	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))

+ 10 - 0
target/linux/realtek/image/rtl838x.mk

@@ -105,6 +105,16 @@ define Device/iodata_bsh-g24mb
 endef
 TARGET_DEVICES += iodata_bsh-g24mb
 
+# "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
+
 define Device/netgear_gs108t-v3
   $(Device/netgear_nge)
   DEVICE_MODEL := GS108T