2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
8 include $(INCLUDE_DIR
)/image.mk
10 LOADADDR
= 0x80010000 # RAM start + 16M
11 KERNEL_ENTRY
= $(LOADADDR
) # Newer kernels add a jmp to the kernel_entry at the start of the binary
12 RAMSIZE
= 0x01000000 # 64MB
16 LOADADDR
=$(LOADADDR
) \
17 KERNEL_ENTRY
=$(KERNEL_ENTRY
) \
20 define trxalign
/jffs2-128k
23 define trxalign
/jffs2-64k
26 define trxalign
/squashfs
31 $(MAKE
) -C lzma-loader
clean
35 cat
$(KDIR
)/vmlinux |
$(STAGING_DIR_HOST
)/bin
/lzma e
-si
-so
-eos
-lc1
-lp2
-pb2
> $(KDIR
)/vmlinux.lzma
36 rm -f
$(KDIR
)/loader.gz
37 $(MAKE
) -C lzma-loader \
41 echo
-ne
"\\x00" >> $(KDIR
)/loader.gz
44 $(call prepare_generic_squashfs
,$(KDIR
)/fs_mark
)
48 $(STAGING_DIR_HOST
)/bin
/trx
-o
$(BIN_DIR
)/openwrt-
$(BOARD
)-$(1).trx
-f
$(KDIR
)/loader.gz
-f
$(KDIR
)/vmlinux.lzma
$(call trxalign
/$(1)) -f
$(KDIR
)/root.
$(1)
51 $(eval
$(call BuildImage
))