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
11 rm -f
$(KDIR
)/loader.gz
12 $(MAKE
) -C lzma-loader \
16 echo
-ne
"\\x00" >> $(KDIR
)/loader.gz
20 $(MAKE
) -C lzma-loader
clean
24 cat
$(KDIR
)/vmlinux |
$(STAGING_DIR
)/bin
/lzma e
-si
-so
-eos
-lc1
-lp2
-pb2
> $(KDIR
)/vmlinux.lzma
27 define trxalign
/jffs2-128k
30 define trxalign
/jffs2-64k
33 define trxalign
/squashfs
37 define Image
/Build
/Compex
38 $(CP
) $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
)-$(1).trx
$(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
)-$(3)-$(2).trx
41 define Image
/Build
/Edimax
42 $(STAGING_DIR
)/bin
/mksyshdr csys
$(KDIR
)/vmlinux
43 cat csys
$(KDIR
)/vmlinux
$(KDIR
)/root.
$(1) > $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
)-$(3)-$(2).img
47 $(STAGING_DIR
)/bin
/trx
-o
$(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
)-$(1).trx
-f
$(KDIR
)/loader.gz
-f
$(KDIR
)/vmlinux.lzma
$(call trxalign
/$(1)) -f
$(KDIR
)/root.
$(1)
48 ifneq ($(1),jffs2-128K
)
49 $(call Image
/Build
/Compex
,$(1),wp54g
,$(patsubst jffs2-
%,jffs2
,$(1)))
50 $(call Image
/Build
/Edimax
,$(1),br6104
,$(patsubst jffs2-
%,jffs2
,$(1)))
54 $(eval
$(call BuildImage
))
This page took 0.043046 seconds and 5 git commands to generate.