1 include $(TOPDIR
)/rules.mk
3 KDIR
:=$(BUILD_DIR
)/linux-
$(KERNEL
)-brcm
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
14 $(KDIR
)/vmlinux.lzma
: $(KDIR
)/vmlinux
15 cat
$^ |
$(STAGING_DIR
)/bin
/lzma e
-si
-so
-eos
-lc1
-lp2
-pb2
> $@ ||
(rm -f
$@
&& false
)
17 ifeq ($(FS
),jffs2-8MB
)
20 ifeq ($(FS
),jffs2-4MB
)
23 $(BIN_DIR
)/openwrt-brcm-
$(KERNEL
)-$(FS
).trx
: $(KDIR
)/vmlinux.lzma
24 $(STAGING_DIR
)/bin
/trx
-o
$@
$(BUILD_DIR
)/loader.gz
$(KDIR
)/vmlinux.lzma
$(TRXALIGN
) $(KDIR
)/root.
$(FS
)
28 FSNAME
:=$(patsubst jffs2-
%,jffs2
,$(FS
))
30 ifneq ($(FS
),jffs2-8MB
)
31 $(BIN_DIR
)/openwrt-wrt54g-
$(FSNAME
).bin
: $(BIN_DIR
)/openwrt-brcm-
$(KERNEL
)-$(FS
).trx
32 $(STAGING_DIR
)/bin
/addpattern
-2 -i
$< -o
$@
-g
33 $(SED
) "1s,^W54S,W54G," $@
35 install: $(BIN_DIR
)/openwrt-wrt54g-
$(FSNAME
).bin
38 ifneq ($(FS
),jffs2-4MB
)
39 $(BIN_DIR
)/openwrt-wrt54gs-
$(FSNAME
).bin
: $(BIN_DIR
)/openwrt-brcm-
$(KERNEL
)-$(FS
).trx
40 $(STAGING_DIR
)/bin
/addpattern
-2 -i
$< -o
$@
-g
42 install: $(BIN_DIR
)/openwrt-wrt54gs-
$(FSNAME
).bin
45 $(BIN_DIR
)/openwrt-motorola-
$(FS
).bin
: $(BIN_DIR
)/openwrt-brcm-
$(KERNEL
)-$(FS
).trx
46 $(STAGING_DIR
)/bin
/motorola-bin
$< $@
47 install: $(BIN_DIR
)/openwrt-motorola-
$(FS
).bin
50 clean: lzma-loader-clean
51 prepare
: lzma-loader-prepare
52 compile
: lzma-loader-compile
53 install: compile
$(BIN_DIR
)/openwrt-brcm-
$(KERNEL
)-$(FS
).trx
This page took 0.053727 seconds and 5 git commands to generate.