diff options
author | Waldemar Brodkorb <mail@waldemar-brodkorb.de> | 2012-01-17 20:11:36 +0100 |
---|---|---|
committer | Waldemar Brodkorb <mail@waldemar-brodkorb.de> | 2012-01-17 20:11:36 +0100 |
commit | edee761616905546cfbe57a18d0e774e528ee1d6 (patch) | |
tree | b6e41b42ce7f11263e8d72f9c5d265c61ed8d8eb /target/mips | |
parent | 75ccd818128c376f267009bb324029ffceb6a864 (diff) |
make broadcom devices work with selfrelocatable bootloader (even Asus WL500gp)
Diffstat (limited to 'target/mips')
-rw-r--r-- | target/mips/Makefile | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/target/mips/Makefile b/target/mips/Makefile index 876c39352..8e2f31f66 100644 --- a/target/mips/Makefile +++ b/target/mips/Makefile @@ -27,16 +27,16 @@ tools-compile: ifeq ($(ADK_TARGET_SYSTEM_BROADCOM_BCM47XX),y) kernel-install: tools-compile - ${TARGET_CROSS}objcopy ${OSTRIP} -S ${LINUX_DIR}/vmlinux \ + ${TARGET_CROSS}objcopy ${OSTRIP} -S ${LINUX_DIR}/vmlinuz.elf \ ${BUILD_DIR}/${TARGET_KERNEL} - cat $(LINUX_DIR)/vmlinux | $(STAGING_DIR)/bin/lzma e -si -so -eos -lc1 -lp2 -pb2 > $(LINUX_DIR)/vmlinux.lzma ${BUILD_DIR}/${ROOTFSSQUASHFS}: ${BUILD_DIR}/root.squashfs - cp $(TOPDIR)/target/tools/lzma-loader/src/loader.gz \ - $(LINUX_DIR)/loader.gz - printf '\0' >>$(LINUX_DIR)/loader.gz - PATH='${TARGET_PATH}' trx -o $@~ -f $(LINUX_DIR)/loader.gz \ - -f $(LINUX_DIR)/vmlinux.lzma -a 1024 -f ${BUILD_DIR}/root.squashfs + ${TARGET_CROSS}objcopy -O binary ${BUILD_DIR}/${TARGET_KERNEL} \ + ${BUILD_DIR}/${TARGET_KERNEL}.bin + gzip -n9 <${BUILD_DIR}/${TARGET_KERNEL}.bin \ + >${BUILD_DIR}/${TARGET_KERNEL}.bin.gz + printf '\0' >>${BUILD_DIR}/${TARGET_KERNEL}.bin.gz + PATH='${TARGET_PATH}' trx -o $@~ -f ${BUILD_DIR}/${TARGET_KERNEL}.bin.gz -a 1024 -f ${BUILD_DIR}/root.squashfs ifneq ($(ADK_TARGET_BROADCOM_MODEL_ASUS_WL500GP),y) PATH='${TARGET_PATH}' addpattern -4 ${ADK_TOOLS_ADDPATTERN_ARGS} -g -i $@~ -o $@ else |