2 # Copyright (C) 2006,2007 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 LOADER_MAKE
:= $(NO_TRACE_MAKE
) -C lzma-loader KDIR
=$(KDIR
)
11 IMGNAME
:= $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
)
14 $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
)-$(patsubst jffs2-
%,jffs2
,$(1))-$(2)
22 cat
$(KDIR
)/vmlinux |
$(STAGING_DIR_HOST
)/bin
/lzma e
-si
-so
-eos
-lc1
-lp2
-pb2
> $(KDIR
)/vmlinux.lzma
25 define Image
/Build
/Loader
26 $(LOADER_MAKE
) LOADER
=loader-
$(1).
$(2) LOADER_DATA
="" \
27 LZMA_TEXT_START
=$(3) LZMA_STARTUP_ORG
=$(4) \
28 CONFIG_PASS_KARGS
=$(5) CONFIG_BOARD
=$(6) \
32 define Image
/Build
/LZMAKernel
33 $(LOADER_MAKE
) TARGET_DIR
=$(BIN_DIR
) \
34 LOADER
=openwrt-
$(BOARD
)-$(KERNEL
)-ramfs-lzma-
$(1).
$(2) \
35 LOADER_DATA
=$(KDIR
)/vmlinux.lzma \
36 LZMA_TEXT_START
=$(3) LZMA_STARTUP_ORG
=$(4) \
37 CONFIG_PASS_KARGS
=$(5) CONFIG_BOARD
=$(6) \
41 define Image
/Build
/LZMAKernel
/Generic
42 $(call Image
/Build
/LZMAKernel
,$(1),$(2),0x80500000,0)
45 define Image
/Build
/LZMAKernel
/Admboot
46 $(call Image
/Build
/LZMAKernel
,$(1),$(2),0x80500000,0x6D8,y
,$(1))
49 define Image
/Build
/LZMAKernel
/KArgs
50 $(call Image
/Build
/LZMAKernel
,$(1),$(2),0x80500000,0,y
,$(1))
53 define trxalign
/jffs2-128k
54 -a
0x20000 -f
$(KDIR
)/root.jffs2-128k
56 define trxalign
/jffs2-64k
57 -a
0x10000 -f
$(KDIR
)/root.jffs2-64k
59 define trxalign
/squashfs
60 -a
1024 -f
$(KDIR
)/root.squashfs
63 define Image
/Build
/TRX
64 $(STAGING_DIR_HOST
)/bin
/trx
-o
$(1) -f
$(3) -f
$(KDIR
)/vmlinux.lzma \
68 define Image
/Build
/TRXNoloader
69 $(STAGING_DIR_HOST
)/bin
/trx
-o
$(1) -f
$(KDIR
)/vmlinux.lzma \
73 include $(SUBTARGET
).mk
76 $(call Image
/Build
/Profile
/$(PROFILE
),$(1))
79 define Image
/Build
/Initramfs
80 $(call Image
/Build
/Profile
/$(PROFILE
),Initramfs
)
83 $(eval
$(call BuildImage
))
This page took 0.042307 seconds and 5 git commands to generate.