54963b671b348196f0176d973a62ab42480b9d37
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 $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
)-$(FS
).trx
: $(KDIR
)/vmlinux.lzma compile
21 ifeq ($(FS
),jffs2-8MB
)
24 ifeq ($(FS
),jffs2-4MB
)
27 $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
)-$(FS
).trx
:
28 $(STAGING_DIR
)/bin
/trx
-o
$@
$(BUILD_DIR
)/loader.gz
$(KDIR
)/vmlinux.lzma
$(TRXALIGN
) $(KDIR
)/root.
$(FS
)
31 FSNAME
:=$(patsubst jffs2-
%,jffs2
,$(FS
))
33 $(BIN_DIR
)/openwrt-wgt634u-2.6
-$(FSNAME
).bin
: $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
)-$(FS
).trx
34 dd if
=$(BUILD_DIR
)/loader-0.04
/loader.o of
=$@ bs
=65536 conv
=sync
35 cat
$(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
)-$(FS
).trx
>> $@
37 install: $(BIN_DIR
)/openwrt-wgt634u-2.6
-$(FSNAME
).bin
41 FSNAME
:=$(patsubst jffs2-
%,jffs2
,$(FS
))
43 ifneq ($(FS
),jffs2-8MB
)
44 $(BIN_DIR
)/openwrt-wrt54g-
$(FSNAME
).bin
: $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
)-$(FS
).trx
45 $(STAGING_DIR
)/bin
/addpattern
-4 -p W54G
-v v4.20
.6 -i
$< -o
$@
-g
47 install: $(BIN_DIR
)/openwrt-wrt54g-
$(FSNAME
).bin
50 ifneq ($(FS
),jffs2-4MB
)
51 $(BIN_DIR
)/openwrt-wrt54gs-
$(FSNAME
).bin
: $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
)-$(FS
).trx
52 $(STAGING_DIR
)/bin
/addpattern
-4 -p W54S
-v v4.70
.6 -i
$< -o
$@
-g
54 install: $(BIN_DIR
)/openwrt-wrt54gs-
$(FSNAME
).bin
57 $(BIN_DIR
)/openwrt-motorola-
$(FS
).bin
: $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
)-$(FS
).trx
58 $(STAGING_DIR
)/bin
/motorola-bin
$< $@
59 install: $(BIN_DIR
)/openwrt-motorola-
$(FS
).bin
63 clean: lzma-loader-clean
64 prepare
: lzma-loader-prepare
65 compile
: lzma-loader-compile
71 install: $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
)-$(FS
).trx
73 mkdir
-p
$(IB_DIR
)/staging_dir_
$(ARCH
)/bin
74 cp
-fpR
$(STAGING_DIR
)/bin
/addpattern
$(STAGING_DIR
)/bin
/trx
$(STAGING_DIR
)/bin
/motorola-bin
$(IB_DIR
)/staging_dir_
$(ARCH
)/bin
75 mkdir
-p
$(IB_DIR
)/build_
$(ARCH
)/linux-
$(KERNEL
)-$(BOARD
)
76 cp
-fpR
$(BUILD_DIR
)/loader.gz
$(IB_DIR
)/build_
$(ARCH
)/
77 cp
-fpR
$(KDIR
)/vmlinux.lzma
$(IB_DIR
)/build_
$(ARCH
)/linux-
$(KERNEL
)-$(BOARD
)/
This page took 0.041411 seconds and 3 git commands to generate.