summaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorÁlvaro Fernández Rojas <noltari@gmail.com>2020-04-06 16:56:19 +0200
committerÁlvaro Fernández Rojas <noltari@gmail.com>2020-05-12 12:34:57 +0200
commit84646936a6480002b9a04e01ff05530126512bcf (patch)
treee810d705d0f7633532d82662f9aeca14dfd1a5a8 /target
parentb181294b02499e41b6b6fa24163f59c9ee4988ed (diff)
downloadopenwrt-84646936a6480002b9a04e01ff05530126512bcf.tar.gz
openwrt-84646936a6480002b9a04e01ff05530126512bcf.tar.bz2
openwrt-84646936a6480002b9a04e01ff05530126512bcf.zip
bcm63xx: image: rename LOADADDR to KERNEL_LOADADDR
Also remove KERNEL_ENTRY, since it's the same as KERNEL_LOADADDR Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'target')
-rw-r--r--target/linux/bcm63xx/image/Makefile17
1 files changed, 8 insertions, 9 deletions
diff --git a/target/linux/bcm63xx/image/Makefile b/target/linux/bcm63xx/image/Makefile
index cc1660aa25..f6d2bf4bbd 100644
--- a/target/linux/bcm63xx/image/Makefile
+++ b/target/linux/bcm63xx/image/Makefile
@@ -8,22 +8,21 @@
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/image.mk
-LOADADDR = 0x80010000 # RAM start + 64K
-KERNEL_ENTRY = $(LOADADDR) # Newer kernels add a jmp to the kernel_entry at the start of the binary
-LOADER_ENTRY = 0x80a00000 # RAM start + 10M, for relocate
-RAMSIZE = 0x02000000 # 32MB
-LZMA_TEXT_START = 0x81800000 # 32MB - 8MB
+KERNEL_LOADADDR = 0x80010000 # RAM start + 64K
+LOADER_ENTRY = 0x80a00000 # RAM start + 10M, for relocate
+RAMSIZE = 0x02000000 # 32MB
+LZMA_TEXT_START = 0x81800000 # 32MB - 8MB
LOADER_MAKEOPTS= \
KDIR=$(KDIR) \
- LOADADDR=$(LOADADDR) \
- KERNEL_ENTRY=$(KERNEL_ENTRY) \
+ LOADADDR=$(KERNEL_LOADADDR) \
+ KERNEL_ENTRY=$(KERNEL_LOADADDR) \
RAMSIZE=$(RAMSIZE) \
LZMA_TEXT_START=$(LZMA_TEXT_START) \
RELOCATE_MAKEOPTS= \
CACHELINE_SIZE=16 \
- KERNEL_ADDR=$(KERNEL_ENTRY) \
+ KERNEL_ADDR=$(KERNEL_LOADADDR) \
CROSS_COMPILE=$(TARGET_CROSS) \
LZMA_TEXT_START=$(LOADER_ENTRY)
@@ -37,7 +36,7 @@ endef
define Build/hcs-initramfs
$(STAGING_DIR_HOST)/bin/hcsmakeimage --magic_bytes=$(HCS_MAGIC_BYTES) \
--rev_maj=$(HCS_REV_MAJ) --rev_min=$(HCS_REV_MIN) --input_file=$@ \
- --output_file=$@.hcs --ldaddress=$(LOADADDR)
+ --output_file=$@.hcs --ldaddress=$(KERNEL_LOADADDR)
mv $@.hcs $@
endef