瀏覽代碼

malta: remove hack to determine entry point

Malta has CONFIG_BOOT_RAW set, so jumping to the load address is valid

Signed-off-by: Felix Fietkau <[email protected]>
Felix Fietkau 8 年之前
父節點
當前提交
d2424d4b21
共有 1 個文件被更改,包括 1 次插入5 次删除
  1. 1 5
      target/linux/malta/image/Makefile

+ 1 - 5
target/linux/malta/image/Makefile

@@ -7,10 +7,6 @@
 include $(TOPDIR)/rules.mk
 include $(TOPDIR)/rules.mk
 include $(INCLUDE_DIR)/image.mk
 include $(INCLUDE_DIR)/image.mk
 
 
-define get_kernel_entry
-0x$(shell $(TARGET_CROSS)nm $(1) 2>/dev/null | grep " kernel_entry" | cut -f1 -d ' ')
-endef
-
 define CompressLzma
 define CompressLzma
   $(STAGING_DIR_HOST)/bin/lzma e $(1) -lc1 -lp2 -pb2 $(2)
   $(STAGING_DIR_HOST)/bin/lzma e $(1) -lc1 -lp2 -pb2 $(2)
 endef
 endef
@@ -21,7 +17,7 @@ endef
 
 
 define MkuImage
 define MkuImage
 	mkimage -A mips -O linux -T kernel -a 0x80100000 -C $(1) $(2) \
 	mkimage -A mips -O linux -T kernel -a 0x80100000 -C $(1) $(2) \
-		-e $(call get_kernel_entry,$(KDIR)/vmlinux.debug) -n 'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
+		-e 0x80100000 -n 'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
 		-d $(3) $(4)
 		-d $(3) $(4)
 endef
 endef