cleanup in target/
[openwrt.git] / target / linux / image / brcm / Makefile
1 include $(TOPDIR)/rules.mk
2
3 KDIR:=$(BUILD_DIR)/linux-$(KERNEL)-brcm
4
5 lzma-loader-clean:
6 $(MAKE) -C lzma-loader clean
7
8 lzma-loader-prepare:
9 $(MAKE) -C lzma-loader prepare
10
11 lzma-loader-compile: lzma-loader-prepare
12 $(MAKE) -C lzma-loader compile
13
14 $(KDIR)/vmlinux.lzma: $(KDIR)/vmlinux
15 cat $^ | $(STAGING_DIR)/bin/lzma e -si -so -eos -lc1 -lp2 -pb2 > $@ || (rm -f $@ && false)
16
17 $(BIN_DIR)/openwrt-brcm-$(KERNEL)-$(FS).trx: $(KDIR)/vmlinux.lzma
18 $(STAGING_DIR)/bin/trx -o $@ $(BUILD_DIR)/loader.gz $(KDIR)/vmlinux.lzma $(KDIR)/root.$(FS)
19
20 ifeq ($(KERNEL),2.4)
21 FSNAME:=$(patsubst jffs2-%,jffs2,$(FS))
22
23 ifneq ($(FS),jffs2-8MB)
24 $(BIN_DIR)/openwrt-wrt54g-$(FSNAME).bin: $(BIN_DIR)/openwrt-brcm-$(KERNEL)-$(FS).trx
25 $(STAGING_DIR)/bin/addpattern -2 -i $< -o $@ -g
26 $(SED) "1s,^W54S,W54G," $@
27
28 install: $(BIN_DIR)/openwrt-wrt54g-$(FSNAME).bin
29 endif
30
31 ifneq ($(FS),jffs2-4MB)
32 $(BIN_DIR)/openwrt-wrt54gs-$(FSNAME).bin: $(BIN_DIR)/openwrt-brcm-$(KERNEL)-$(FS).trx
33 $(STAGING_DIR)/bin/addpattern -2 -i $< -o $@ -g
34
35 install: $(BIN_DIR)/openwrt-wrt54gs-$(FSNAME).bin
36 endif
37
38 $(BIN_DIR)/openwrt-motorola-$(FS).bin: $(BIN_DIR)/openwrt-brcm-$(KERNEL)-$(FS).trx
39 $(STAGING_DIR)/bin/motorola-bin $< $@
40 install: $(BIN_DIR)/openwrt-motorola-$(FS).bin
41 endif
42
43 clean: lzma-loader-clean
44 prepare: lzma-loader-prepare
45 compile: lzma-loader-compile
46 install: $(BIN_DIR)/openwrt-brcm-$(KERNEL)-$(FS).trx
47
This page took 0.047717 seconds and 5 git commands to generate.