1 include $(TOPDIR
)/rules.mk
3 KDIR
:=$(BUILD_DIR
)/linux-
$(KERNEL
)-$(BOARD
)
6 $(MAKE
) -C lzma-loader
clean
9 $(MAKE
) -C lzma-loader prepare
11 lzma-loader-compile
: lzma-loader-prepare
12 $(MAKE
) -C lzma-loader compile
15 $(KDIR
)/vmlinux.lzma
: $(KDIR
)/vmlinux
16 cat
$^ |
$(STAGING_DIR
)/bin
/lzma e
-si
-so
-eos
-lc1
-lp2
-pb2
> $@ ||
(rm -f
$@
&& false
)
18 $(KDIR
)/loader.tmp.gz
: compile
19 $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
)-$(FS
).trx
: $(KDIR
)/vmlinux.lzma
22 ifeq ($(FS
),jffs2-8MB
)
25 ifeq ($(FS
),jffs2-4MB
)
29 $(KDIR
)/loader.tmp.gz
:
30 cp
$(BUILD_DIR
)/loader.gz
$@
31 echo
-ne
"\\x00" >> $@
33 $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
)-$(FS
).trx
: $(KDIR
)/loader.tmp.gz
34 $(STAGING_DIR
)/bin
/trx
-o
$@
$(KDIR
)/loader.tmp.gz
$(KDIR
)/vmlinux.lzma
$(TRXALIGN
) $(KDIR
)/root.
$(FS
)
37 FSNAME
:=$(patsubst jffs2-
%,jffs2
,$(FS
))
39 ifneq ($(FS
),jffs2-4MB
)
40 $(BIN_DIR
)/openwrt-wgt634u-
$(KERNEL
)-$(FSNAME
).bin
: $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
)-$(FS
).trx
41 dd if
=$(BUILD_DIR
)/loader.elf of
=$@ bs
=131072 conv
=sync
42 cat
$(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
)-$(FS
).trx
>> $@
44 install: $(BIN_DIR
)/openwrt-wgt634u-
$(KERNEL
)-$(FSNAME
).bin
49 FSNAME
:=$(patsubst jffs2-
%,jffs2
,$(FS
))
52 $(BIN_DIR
)/openwrt-wap54g-
$(FSNAME
).trx
: $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
)-$(FS
).trx
56 install: $(BIN_DIR
)/openwrt-wap54g-
$(FSNAME
).trx
59 ifneq ($(FS
),jffs2-8MB
)
60 $(BIN_DIR
)/openwrt-wrt54g3g-
$(FSNAME
).bin
: $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
)-$(FS
).trx
61 $(STAGING_DIR
)/bin
/addpattern
-4 -p W54F
-v v1.99
.5 -i
$< -o
$@
-g
63 $(BIN_DIR
)/openwrt-wrt54g-
$(FSNAME
).bin
: $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
)-$(FS
).trx
64 $(STAGING_DIR
)/bin
/addpattern
-4 -p W54G
-v v4.20
.6 -i
$< -o
$@
-g
66 $(BIN_DIR
)/openwrt-wrt54gs_v4-
$(FSNAME
).bin
: $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
)-$(FS
).trx
67 $(STAGING_DIR
)/bin
/addpattern
-4 -p W54s
-v v1.05
.0 -i
$< -o
$@
-g
69 install: $(BIN_DIR
)/openwrt-wrt54g-
$(FSNAME
).bin
$(BIN_DIR
)/openwrt-wrt54gs_v4-
$(FSNAME
).bin
$(BIN_DIR
)/openwrt-wrt54g3g-
$(FSNAME
).bin
72 ifneq ($(FS
),jffs2-4MB
)
73 $(BIN_DIR
)/openwrt-wrt54gs-
$(FSNAME
).bin
: $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
)-$(FS
).trx
74 $(STAGING_DIR
)/bin
/addpattern
-4 -p W54S
-v v4.70
.6 -i
$< -o
$@
-g
76 install: $(BIN_DIR
)/openwrt-wrt54gs-
$(FSNAME
).bin
79 $(BIN_DIR
)/openwrt-motorola-
$(FS
).bin
: $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
)-$(FS
).trx
80 $(STAGING_DIR
)/bin
/motorola-bin
$< $@
81 install: $(BIN_DIR
)/openwrt-motorola-
$(FS
).bin
85 clean: lzma-loader-clean
86 prepare
: lzma-loader-prepare
87 compile
: lzma-loader-compile
93 install: $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
)-$(FS
).trx
95 mkdir
-p
$(IB_DIR
)/staging_dir_
$(ARCH
)/bin
96 cp
-fpR
$(STAGING_DIR
)/bin
/addpattern
$(STAGING_DIR
)/bin
/trx
$(STAGING_DIR
)/bin
/motorola-bin
$(IB_DIR
)/staging_dir_
$(ARCH
)/bin
97 mkdir
-p
$(IB_DIR
)/build_
$(ARCH
)/linux-
$(KERNEL
)-$(BOARD
)
98 cp
-fpR
$(BUILD_DIR
)/loader.gz
$(IB_DIR
)/build_
$(ARCH
)/
99 cp
-fpR
$(BUILD_DIR
)/loader.elf
$(IB_DIR
)/build_
$(ARCH
)/
100 cp
-fpR
$(KDIR
)/vmlinux.lzma
$(IB_DIR
)/build_
$(ARCH
)/linux-
$(KERNEL
)-$(BOARD
)/
This page took 0.064566 seconds and 5 git commands to generate.