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 ifneq ($(FS
),jffs2-4MB
)
34 $(BIN_DIR
)/openwrt-wgt634u-
$(KERNEL
)-$(FSNAME
).bin
: $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
)-$(FS
).trx
35 dd if
=$(BUILD_DIR
)/loader.elf of
=$@ bs
=131072 conv
=sync
36 cat
$(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
)-$(FS
).trx
>> $@
38 install: $(BIN_DIR
)/openwrt-wgt634u-
$(KERNEL
)-$(FSNAME
).bin
43 FSNAME
:=$(patsubst jffs2-
%,jffs2
,$(FS
))
45 ifneq ($(FS
),jffs2-8MB
)
46 $(BIN_DIR
)/openwrt-wrt54g-
$(FSNAME
).bin
: $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
)-$(FS
).trx
47 $(STAGING_DIR
)/bin
/addpattern
-4 -p W54G
-v v4.20
.6 -i
$< -o
$@
-g
49 install: $(BIN_DIR
)/openwrt-wrt54g-
$(FSNAME
).bin
52 ifneq ($(FS
),jffs2-4MB
)
53 $(BIN_DIR
)/openwrt-wrt54gs-
$(FSNAME
).bin
: $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
)-$(FS
).trx
54 $(STAGING_DIR
)/bin
/addpattern
-4 -p W54S
-v v4.70
.6 -i
$< -o
$@
-g
56 install: $(BIN_DIR
)/openwrt-wrt54gs-
$(FSNAME
).bin
59 $(BIN_DIR
)/openwrt-motorola-
$(FS
).bin
: $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
)-$(FS
).trx
60 $(STAGING_DIR
)/bin
/motorola-bin
$< $@
61 install: $(BIN_DIR
)/openwrt-motorola-
$(FS
).bin
65 clean: lzma-loader-clean
66 prepare
: lzma-loader-prepare
67 compile
: lzma-loader-compile
73 install: $(BIN_DIR
)/openwrt-
$(BOARD
)-$(KERNEL
)-$(FS
).trx
75 mkdir
-p
$(IB_DIR
)/staging_dir_
$(ARCH
)/bin
76 cp
-fpR
$(STAGING_DIR
)/bin
/addpattern
$(STAGING_DIR
)/bin
/trx
$(STAGING_DIR
)/bin
/motorola-bin
$(IB_DIR
)/staging_dir_
$(ARCH
)/bin
77 mkdir
-p
$(IB_DIR
)/build_
$(ARCH
)/linux-
$(KERNEL
)-$(BOARD
)
78 cp
-fpR
$(BUILD_DIR
)/loader.gz
$(IB_DIR
)/build_
$(ARCH
)/
79 cp
-fpR
$(KDIR
)/vmlinux.lzma
$(IB_DIR
)/build_
$(ARCH
)/linux-
$(KERNEL
)-$(BOARD
)/
This page took 0.051822 seconds and 5 git commands to generate.