mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
build system cleanup/restructuring as described in http://lists.openwrt.org/pipermail/openwrt-devel/2007-August/001159.html
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8362 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -22,7 +22,7 @@ define Build/Clean
|
||||
endef
|
||||
|
||||
define Image/Prepare
|
||||
cat $(KDIR)/vmlinux | $(STAGING_DIR)/bin/lzma e -si -so -eos -lc1 -lp2 -pb2 > $(KDIR)/vmlinux.lzma
|
||||
cat $(KDIR)/vmlinux | $(STAGING_DIR_HOST)/bin/lzma e -si -so -eos -lc1 -lp2 -pb2 > $(KDIR)/vmlinux.lzma
|
||||
endef
|
||||
|
||||
define trxalign/jffs2-128k
|
||||
@@ -36,12 +36,12 @@ define trxalign/squashfs
|
||||
endef
|
||||
|
||||
define Image/Build/TRX
|
||||
$(STAGING_DIR)/bin/trx -o $(1) -f $(3) -f $(KDIR)/vmlinux.lzma \
|
||||
$(STAGING_DIR_HOST)/bin/trx -o $(1) -f $(3) -f $(KDIR)/vmlinux.lzma \
|
||||
$(call trxalign/$(2)) -f $(KDIR)/root.$(2)
|
||||
endef
|
||||
|
||||
define Image/Build/TRXNoloader
|
||||
$(STAGING_DIR)/bin/trx -o $(1) -f $(KDIR)/vmlinux.lzma \
|
||||
$(STAGING_DIR_HOST)/bin/trx -o $(1) -f $(KDIR)/vmlinux.lzma \
|
||||
$(call trxalign/$(2)) -f $(KDIR)/root.$(2)
|
||||
endef
|
||||
|
||||
@@ -53,7 +53,7 @@ endef
|
||||
define Image/Build/Edimax
|
||||
$(call Image/Build/Loader,$(2),gz,0x80500000,0x6D8,y,$(2))
|
||||
$(call Image/Build/TRXNoloader,$(IMGNAME)-$(3)-$(2).trx,$(1))
|
||||
$(STAGING_DIR)/bin/mkcsysimg -B $(4) -d -w \
|
||||
$(STAGING_DIR_HOST)/bin/mkcsysimg -B $(4) -d -w \
|
||||
-r $(KDIR)/loader-$(2).gz \
|
||||
-x $(IMGNAME)-$(3)-$(2).trx \
|
||||
$(IMGNAME)-$(3)-$(2).bin
|
||||
@@ -69,7 +69,7 @@ endef
|
||||
define Image/Build/MyLoader
|
||||
$(call Image/Build/Loader,$(2),gz,0x80500000,0)
|
||||
$(call Image/Build/TRXNoloader,$(IMGNAME)-$(3)-$(2).trx,$(1))
|
||||
$(STAGING_DIR)/bin/mkmylofw -B $(4) \
|
||||
$(STAGING_DIR_HOST)/bin/mkmylofw -B $(4) \
|
||||
-p0x20000:0x10000:ahp:0x80001000 \
|
||||
-p0x30000:0 \
|
||||
-b0x20000:0x10000:h:$(KDIR)/loader-$(2).gz \
|
||||
@@ -83,7 +83,7 @@ endef
|
||||
|
||||
define Image/Build/RouterBoard
|
||||
$(CP) $(KDIR)/vmlinux.elf $(IMGNAME)-rb1xx-vmlinux
|
||||
$(STAGING_DIR)/bin/patch-cmdline $(KDIR)/vmlinux.elf '$(strip $(call Image/cmdline/yaffs2)) '
|
||||
$(STAGING_DIR_HOST)/bin/patch-cmdline $(KDIR)/vmlinux.elf '$(strip $(call Image/cmdline/yaffs2)) '
|
||||
endef
|
||||
|
||||
define Image/Build/jffs2-64k
|
||||
|
||||
Reference in New Issue
Block a user