Browse Source

realtek: don't relocate kernel on HPE 1920 series

This is no longer needed now that the kernel is built with a load
address that matches the one hard-coded in the bootloader.

Signed-off-by: Jan Hoffmann <[email protected]>
Jan Hoffmann 3 years ago
parent
commit
7c574525ee
2 changed files with 0 additions and 16 deletions
  1. 0 14
      target/linux/realtek/image/Makefile
  2. 0 2
      target/linux/realtek/image/common.mk

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

@@ -71,20 +71,6 @@ define Build/h3c-vfs
 	mv [email protected] $@
 endef
 
-define Build/relocate-kernel
-	rm -rf [email protected]
-	$(CP) ../../generic/image/relocate [email protected]
-	$(MAKE) -j1 -C [email protected] KERNEL_ADDR=$(KERNEL_LOADADDR) LZMA_TEXT_START=0x82000000 \
-		CROSS_COMPILE=$(TARGET_CROSS)
-	( \
-		dd [email protected]/loader.bin bs=32 conv=sync && \
-		perl -e '@s = stat("$@"); print pack("N", @s[7])' && \
-		cat "$@" \
-	) > "[email protected]"
-	mv "[email protected]" "$@"
-	rm -rf [email protected]
-endef
-
 define Device/Default
   PROFILES = Default
   KERNEL := \

+ 0 - 2
target/linux/realtek/image/common.mk

@@ -34,14 +34,12 @@ define Device/hpe_1920
   KERNEL := \
 	kernel-bin | \
 	append-dtb | \
-	relocate-kernel | \
 	7z | \
 	h3c-image | \
 	h3c-vfs
   KERNEL_INITRAMFS := \
 	kernel-bin | \
 	append-dtb | \
-	relocate-kernel | \
 	7z | \
 	h3c-image
   IMAGE/sysupgrade.bin := \