mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-23 23:16:16 +02:00
[backfire] merge r20834, r20840, r20854 & r20855
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@21208 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
7681afa16d
commit
23a82f632f
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2006 OpenWrt.org
|
# Copyright (C) 2006-2010 OpenWrt.org
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
@ -15,6 +15,8 @@ override MAKEFLAGS=
|
|||||||
override MAKE:=$(SUBMAKE)
|
override MAKE:=$(SUBMAKE)
|
||||||
KDIR=$(KERNEL_BUILD_DIR)
|
KDIR=$(KERNEL_BUILD_DIR)
|
||||||
|
|
||||||
|
IMG_PREFIX:=openwrt-$(BOARD)$(if $(SUBTARGET),-$(SUBTARGET))
|
||||||
|
|
||||||
ifneq ($(CONFIG_BIG_ENDIAN),y)
|
ifneq ($(CONFIG_BIG_ENDIAN),y)
|
||||||
JFFS2OPTS := --pad --little-endian --squash
|
JFFS2OPTS := --pad --little-endian --squash
|
||||||
SQUASHFS_OPTS := -le
|
SQUASHFS_OPTS := -le
|
||||||
@ -76,13 +78,13 @@ ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
|
|||||||
|
|
||||||
ifeq ($(CONFIG_TARGET_ROOTFS_TGZ),y)
|
ifeq ($(CONFIG_TARGET_ROOTFS_TGZ),y)
|
||||||
define Image/mkfs/tgz
|
define Image/mkfs/tgz
|
||||||
$(TAR) -zcf $(BIN_DIR)/openwrt-$(BOARD)-rootfs.tgz --numeric-owner --owner=0 --group=0 -C $(TARGET_DIR)/ .
|
$(TAR) -zcf $(BIN_DIR)/$(IMG_PREFIX)-rootfs.tgz --numeric-owner --owner=0 --group=0 -C $(TARGET_DIR)/ .
|
||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_TARGET_ROOTFS_CPIOGZ),y)
|
ifeq ($(CONFIG_TARGET_ROOTFS_CPIOGZ),y)
|
||||||
define Image/mkfs/cpiogz
|
define Image/mkfs/cpiogz
|
||||||
( cd $(TARGET_DIR); find . | cpio -o -H newc | gzip -9 >$(BIN_DIR)/openwrt-$(BOARD)-rootfs.cpio.gz )
|
( cd $(TARGET_DIR); find . | cpio -o -H newc | gzip -9 >$(BIN_DIR)/$(IMG_PREFIX)-rootfs.cpio.gz )
|
||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_TARGET_ROOTFS_UBIFS),y)
|
ifeq ($(CONFIG_TARGET_ROOTFS_UBIFS),y)
|
||||||
@ -96,7 +98,7 @@ ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
|
|||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
define Image/BuildKernel
|
define Image/BuildKernel
|
||||||
cp $(KDIR)/vmlinux.elf $(BIN_DIR)/openwrt-$(BOARD)-vmlinux.elf
|
cp $(KDIR)/vmlinux.elf $(BIN_DIR)/$(IMG_PREFIX)-vmlinux.elf
|
||||||
$(call Image/Build/Initramfs)
|
$(call Image/Build/Initramfs)
|
||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
|
@ -34,5 +34,5 @@ do
|
|||||||
printf "\xe3\xa0\x10\x$(echo $hexid|cut -b "2 3")\xe3\x81\x1c\x$(echo $hexid|cut -b 1)" > $BIN_DIR/openwrt-$1-zImage
|
printf "\xe3\xa0\x10\x$(echo $hexid|cut -b "2 3")\xe3\x81\x1c\x$(echo $hexid|cut -b 1)" > $BIN_DIR/openwrt-$1-zImage
|
||||||
fi
|
fi
|
||||||
# generate the image
|
# generate the image
|
||||||
cat $BIN_DIR/openwrt-ixp4xx-zImage >> $BIN_DIR/openwrt-$1-zImage
|
cat $BIN_DIR/$IMG_PREFIX-zImage >> $BIN_DIR/openwrt-$1-zImage
|
||||||
done
|
done
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2006,2007 OpenWrt.org
|
# Copyright (C) 2006-2010 OpenWrt.org
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
@ -8,12 +8,11 @@ include $(TOPDIR)/rules.mk
|
|||||||
include $(INCLUDE_DIR)/image.mk
|
include $(INCLUDE_DIR)/image.mk
|
||||||
|
|
||||||
LOADER_MAKE := $(NO_TRACE_MAKE) -C lzma-loader KDIR=$(KDIR)
|
LOADER_MAKE := $(NO_TRACE_MAKE) -C lzma-loader KDIR=$(KDIR)
|
||||||
IMGNAME := $(BIN_DIR)/openwrt-$(BOARD)
|
|
||||||
JFFS2BLOCK := $(KDIR)/jffs2.block
|
JFFS2BLOCK := $(KDIR)/jffs2.block
|
||||||
JFFS2MARK := $(KDIR)/jffs2.mark
|
JFFS2MARK := $(KDIR)/jffs2.mark
|
||||||
|
|
||||||
define imgname
|
define imgname
|
||||||
$(IMGNAME)-$(2)-$(patsubst jffs2-%,jffs2,$(1))
|
$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(patsubst jffs2-%,jffs2,$(1))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Clean
|
define Build/Clean
|
||||||
@ -39,7 +38,7 @@ endef
|
|||||||
|
|
||||||
define Image/Build/LZMAKernel
|
define Image/Build/LZMAKernel
|
||||||
$(LOADER_MAKE) TARGET_DIR=$(BIN_DIR) \
|
$(LOADER_MAKE) TARGET_DIR=$(BIN_DIR) \
|
||||||
LOADER=openwrt-$(BOARD)-$(1)-ramfs.$(2) \
|
LOADER=$(BIN_DIR)/$(IMG_PREFIX)-$(1)-ramfs.$(2) \
|
||||||
LOADER_DATA=$(KDIR)/vmlinux.lzma \
|
LOADER_DATA=$(KDIR)/vmlinux.lzma \
|
||||||
LZMA_TEXT_START=$(3) LZMA_STARTUP_ORG=$(4) \
|
LZMA_TEXT_START=$(3) LZMA_STARTUP_ORG=$(4) \
|
||||||
CONFIG_PASS_KARGS=$(5) CONFIG_BOARD=$(6) \
|
CONFIG_PASS_KARGS=$(5) CONFIG_BOARD=$(6) \
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2006 OpenWrt.org
|
# Copyright (C) 2006-2010 OpenWrt.org
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
@ -57,12 +57,12 @@ bs=65536 conv=sync
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build/CyberTAN
|
define Image/Build/CyberTAN
|
||||||
(dd if=/dev/zero bs=16 count=1; cat $(BIN_DIR)/openwrt-$(BOARD)-$(1).bin) | \
|
(dd if=/dev/zero bs=16 count=1; cat $(BIN_DIR)/$(IMG_PREFIX)-$(1).bin) | \
|
||||||
$(STAGING_DIR_HOST)/bin/addpattern -p $(3) -o $(BIN_DIR)/openwrt-$(2)-$(4)-code.bin
|
$(STAGING_DIR_HOST)/bin/addpattern -p $(3) -o $(BIN_DIR)/openwrt-$(2)-$(4)-code.bin
|
||||||
endef
|
endef
|
||||||
|
|
||||||
#define Image/Build/sErCoMm
|
#define Image/Build/sErCoMm
|
||||||
# cat sercomm/adam2.bin "$(BIN_DIR)/openwrt-$(BOARD)-$(1).bin" > "$(KDIR)/dgfw.tmp"
|
# cat sercomm/adam2.bin "$(BIN_DIR)/$(IMG_PREFIX)-$(1).bin" > "$(KDIR)/dgfw.tmp"
|
||||||
# dd if=sercomm/$(2) of="$(KDIR)/dgfw.tmp" bs=$$$$((0x3e0000 - 80)) seek=1 conv=notrunc
|
# dd if=sercomm/$(2) of="$(KDIR)/dgfw.tmp" bs=$$$$((0x3e0000 - 80)) seek=1 conv=notrunc
|
||||||
# $(STAGING_DIR_HOST)/bin/dgfirmware -f -w "$(BIN_DIR)/openwrt-$(2)-$(3).img" "$(KDIR)/dgfw.tmp"
|
# $(STAGING_DIR_HOST)/bin/dgfirmware -f -w "$(BIN_DIR)/openwrt-$(2)-$(3).img" "$(KDIR)/dgfw.tmp"
|
||||||
# rm -f "$(KDIR)/dgfw.tmp"
|
# rm -f "$(KDIR)/dgfw.tmp"
|
||||||
@ -76,9 +76,9 @@ define Image/Build/EVA
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build
|
define Image/Build
|
||||||
dd if=$(KDIR)/loader.bin $(call align/$(1)) > $(BIN_DIR)/openwrt-$(BOARD)-$(1).bin
|
dd if=$(KDIR)/loader.bin $(call align/$(1)) > $(BIN_DIR)/$(IMG_PREFIX)-$(1).bin
|
||||||
cat $(KDIR)/root.$(1) >> $(BIN_DIR)/openwrt-$(BOARD)-$(1).bin
|
cat $(KDIR)/root.$(1) >> $(BIN_DIR)/$(IMG_PREFIX)-$(1).bin
|
||||||
$(call prepare_generic_squashfs,$(BIN_DIR)/openwrt-$(BOARD)-$(1).bin)
|
$(call prepare_generic_squashfs,$(BIN_DIR)/$(IMG_PREFIX)-$(1).bin)
|
||||||
$(call Image/Build/CyberTAN,$(1),AG1B,AG1B,$(1))
|
$(call Image/Build/CyberTAN,$(1),AG1B,AG1B,$(1))
|
||||||
$(call Image/Build/CyberTAN,$(1),AG1A,AG1A,$(1))
|
$(call Image/Build/CyberTAN,$(1),AG1A,AG1A,$(1))
|
||||||
$(call Image/Build/CyberTAN,$(1),WA21,WA21,$(1))
|
$(call Image/Build/CyberTAN,$(1),WA21,WA21,$(1))
|
||||||
|
@ -7,14 +7,12 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
include $(INCLUDE_DIR)/image.mk
|
include $(INCLUDE_DIR)/image.mk
|
||||||
|
|
||||||
IMGNAME:=$(BIN_DIR)/openwrt-$(BOARD)
|
|
||||||
|
|
||||||
define imgname
|
define imgname
|
||||||
$(IMGNAME)-$(2)-$(patsubst jffs2-%,jffs2,$(patsubst squashfs-%,squashfs,$(1)))
|
$(BIN_DIR)/$(IMG_PREFIX)-$(2)-$(patsubst jffs2-%,jffs2,$(patsubst squashfs-%,squashfs,$(1)))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
VMLINUX:=$(IMGNAME)-vmlinux
|
VMLINUX:=$(BIN_DIR)/$(IMG_PREFIX)-vmlinux
|
||||||
UIMAGE:=$(IMGNAME)-uImage
|
UIMAGE:=$(BIN_DIR)/$(IMG_PREFIX)-uImage
|
||||||
fs_squash:=squashfs-only
|
fs_squash:=squashfs-only
|
||||||
fs_all:=all
|
fs_all:=all
|
||||||
fs_4k:=4k
|
fs_4k:=4k
|
||||||
@ -26,8 +24,8 @@ ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
|
|||||||
fs_4k:=initramfs
|
fs_4k:=initramfs
|
||||||
fs_64k:=initramfs
|
fs_64k:=initramfs
|
||||||
fs_128k:=initramfs
|
fs_128k:=initramfs
|
||||||
VMLINUX:=$(IMGNAME)-vmlinux-initramfs
|
VMLINUX:=$(BIN_DIR)/$(IMG_PREFIX)-vmlinux-initramfs
|
||||||
UIMAGE:=$(IMGNAME)-uImage-initramfs
|
UIMAGE:=$(BIN_DIR)/$(IMG_PREFIX)-uImage-initramfs
|
||||||
endif
|
endif
|
||||||
|
|
||||||
define CompressLzma
|
define CompressLzma
|
||||||
@ -227,11 +225,11 @@ define Image/Build/UBNTXM
|
|||||||
-$(STAGING_DIR_HOST)/bin/mkfwimage \
|
-$(STAGING_DIR_HOST)/bin/mkfwimage \
|
||||||
-B $(4) -v $(5).$(6).OpenWrt.$(REVISION) \
|
-B $(4) -v $(5).$(6).OpenWrt.$(REVISION) \
|
||||||
-k $(KDIR)/vmlinux-$(2).uImage \
|
-k $(KDIR)/vmlinux-$(2).uImage \
|
||||||
-r $(BIN_DIR)/openwrt-$(BOARD)-root.$(1) \
|
-r $(BIN_DIR)/$(IMG_PREFIX)-root.$(1) \
|
||||||
-o $(call imgname,$(1),$(2))-factory.bin
|
-o $(call imgname,$(1),$(2))-factory.bin
|
||||||
( \
|
( \
|
||||||
dd if=$(KDIR)/vmlinux-$(2).uImage; \
|
dd if=$(KDIR)/vmlinux-$(2).uImage; \
|
||||||
dd if=$(BIN_DIR)/openwrt-$(BOARD)-root.$(1); \
|
dd if=$(BIN_DIR)/$(IMG_PREFIX)-root.$(1); \
|
||||||
) > $(call imgname,$(1),$(2))-sysupgrade.bin
|
) > $(call imgname,$(1),$(2))-sysupgrade.bin
|
||||||
endef
|
endef
|
||||||
|
|
||||||
@ -241,11 +239,11 @@ define Image/Build/UBNT
|
|||||||
-$(STAGING_DIR_HOST)/bin/mkfwimage \
|
-$(STAGING_DIR_HOST)/bin/mkfwimage \
|
||||||
-B $(4) -v $(5).$(6).OpenWrt.$(REVISION) \
|
-B $(4) -v $(5).$(6).OpenWrt.$(REVISION) \
|
||||||
-k $(KDIR)/vmlinux-$(2).lzma \
|
-k $(KDIR)/vmlinux-$(2).lzma \
|
||||||
-r $(BIN_DIR)/openwrt-$(BOARD)-root.$(1) \
|
-r $(BIN_DIR)/$(IMG_PREFIX)-root.$(1) \
|
||||||
-o $(call imgname,$(1),$(2))-factory.bin
|
-o $(call imgname,$(1),$(2))-factory.bin
|
||||||
-sh $(TOPDIR)/scripts/combined-image.sh \
|
-sh $(TOPDIR)/scripts/combined-image.sh \
|
||||||
"$(KDIR)/vmlinux-$(2).lzma" \
|
"$(KDIR)/vmlinux-$(2).lzma" \
|
||||||
"$(BIN_DIR)/openwrt-$(BOARD)-root.$(1)" \
|
"$(BIN_DIR)/$(IMG_PREFIX)-root.$(1)" \
|
||||||
$(call imgname,$(1),$(2))-sysupgrade.bin
|
$(call imgname,$(1),$(2))-sysupgrade.bin
|
||||||
endef
|
endef
|
||||||
|
|
||||||
@ -277,12 +275,12 @@ define Image/Build/TPLINK
|
|||||||
-$(STAGING_DIR_HOST)/bin/mktplinkfw \
|
-$(STAGING_DIR_HOST)/bin/mktplinkfw \
|
||||||
-B $(4) -N OpenWrt -V $(REVISION)\
|
-B $(4) -N OpenWrt -V $(REVISION)\
|
||||||
-k $(KDIR)/vmlinux-$(2).bin.gz \
|
-k $(KDIR)/vmlinux-$(2).bin.gz \
|
||||||
-r $(BIN_DIR)/openwrt-$(BOARD)-root.$(1) \
|
-r $(BIN_DIR)/$(IMG_PREFIX)-root.$(1) \
|
||||||
-o $(call imgname,$(1),$(2))-factory.bin
|
-o $(call imgname,$(1),$(2))-factory.bin
|
||||||
-$(STAGING_DIR_HOST)/bin/mktplinkfw \
|
-$(STAGING_DIR_HOST)/bin/mktplinkfw \
|
||||||
-B $(4) -N OpenWrt -V $(REVISION) -s \
|
-B $(4) -N OpenWrt -V $(REVISION) -s \
|
||||||
-k $(KDIR)/vmlinux-$(2).bin.gz \
|
-k $(KDIR)/vmlinux-$(2).bin.gz \
|
||||||
-r $(BIN_DIR)/openwrt-$(BOARD)-root.$(1) \
|
-r $(BIN_DIR)/$(IMG_PREFIX)-root.$(1) \
|
||||||
-o $(call imgname,$(1),$(2))-sysupgrade.bin
|
-o $(call imgname,$(1),$(2))-sysupgrade.bin
|
||||||
endef
|
endef
|
||||||
|
|
||||||
@ -560,8 +558,8 @@ define Image/Build/squashfs
|
|||||||
$(call prepare_generic_squashfs,$(KDIR)/root.squashfs)
|
$(call prepare_generic_squashfs,$(KDIR)/root.squashfs)
|
||||||
dd if=$(KDIR)/root.squashfs of=$(KDIR)/root.squashfs-4k.tmp0 bs=4k conv=sync
|
dd if=$(KDIR)/root.squashfs of=$(KDIR)/root.squashfs-4k.tmp0 bs=4k conv=sync
|
||||||
$(call add_jffs2_mark,$(KDIR)/root.squashfs-4k.tmp0)
|
$(call add_jffs2_mark,$(KDIR)/root.squashfs-4k.tmp0)
|
||||||
dd if=$(KDIR)/root.squashfs-4k.tmp0 of=$(IMGNAME)-root.squashfs-4k bs=4k conv=sync
|
dd if=$(KDIR)/root.squashfs-4k.tmp0 of=$(BIN_DIR)/$(IMG_PREFIX)-root.squashfs-4k bs=4k conv=sync
|
||||||
$(call add_jffs2_mark,$(IMGNAME)-root.squashfs-4k)
|
$(call add_jffs2_mark,$(BIN_DIR)/$(IMG_PREFIX)-root.squashfs-4k)
|
||||||
rm -f $(KDIR)/root.squashfs-4k.tmp0
|
rm -f $(KDIR)/root.squashfs-4k.tmp0
|
||||||
endef
|
endef
|
||||||
|
|
||||||
@ -571,7 +569,7 @@ endef
|
|||||||
|
|
||||||
define Image/Build
|
define Image/Build
|
||||||
$(call Image/Build/$(1))
|
$(call Image/Build/$(1))
|
||||||
dd if=$(KDIR)/root.$(1) of=$(IMGNAME)-root.$(1) bs=128k conv=sync
|
dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/$(IMG_PREFIX)-root.$(1) bs=128k conv=sync
|
||||||
|
|
||||||
$(call Image/Build/Profile/$(PROFILE),$(1))
|
$(call Image/Build/Profile/$(PROFILE),$(1))
|
||||||
endef
|
endef
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2006-2008 OpenWrt.org
|
# Copyright (C) 2006-2010 OpenWrt.org
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
@ -8,11 +8,11 @@ include $(TOPDIR)/rules.mk
|
|||||||
include $(INCLUDE_DIR)/image.mk
|
include $(INCLUDE_DIR)/image.mk
|
||||||
|
|
||||||
define Image/BuildKernel
|
define Image/BuildKernel
|
||||||
cp $(KDIR)/vmlinux.elf $(BIN_DIR)/openwrt-$(BOARD)-vmlinux.elf
|
cp $(KDIR)/vmlinux.elf $(BIN_DIR)/$(IMG_PREFIX)-vmlinux.elf
|
||||||
gzip -9 -c $(KDIR)/vmlinux > $(KDIR)/vmlinux.bin.gz
|
gzip -9 -c $(KDIR)/vmlinux > $(KDIR)/vmlinux.bin.gz
|
||||||
$(STAGING_DIR_HOST)/bin/lzma e $(KDIR)/vmlinux $(KDIR)/vmlinux.bin.l7
|
$(STAGING_DIR_HOST)/bin/lzma e $(KDIR)/vmlinux $(KDIR)/vmlinux.bin.l7
|
||||||
dd if=$(KDIR)/vmlinux.bin.l7 of=$(BIN_DIR)/openwrt-$(BOARD)-vmlinux.lzma bs=65536 conv=sync
|
dd if=$(KDIR)/vmlinux.bin.l7 of=$(BIN_DIR)/$(IMG_PREFIX)-vmlinux.lzma bs=65536 conv=sync
|
||||||
dd if=$(KDIR)/vmlinux.bin.gz of=$(BIN_DIR)/openwrt-$(BOARD)-vmlinux.gz bs=65536 conv=sync
|
dd if=$(KDIR)/vmlinux.bin.gz of=$(BIN_DIR)/$(IMG_PREFIX)-vmlinux.gz bs=65536 conv=sync
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build/squashfs
|
define Image/Build/squashfs
|
||||||
@ -21,41 +21,41 @@ endef
|
|||||||
|
|
||||||
define Image/Build
|
define Image/Build
|
||||||
$(call Image/Build/$(1))
|
$(call Image/Build/$(1))
|
||||||
dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/openwrt-$(BOARD)-root.$(1) bs=128k conv=sync
|
dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/$(IMG_PREFIX)-root.$(1) bs=128k conv=sync
|
||||||
|
|
||||||
-$(STAGING_DIR_HOST)/bin/mkfwimage \
|
-$(STAGING_DIR_HOST)/bin/mkfwimage \
|
||||||
-B XS2 -v XS2.ar2316.OpenWrt.$(REVISION) \
|
-B XS2 -v XS2.ar2316.OpenWrt.$(REVISION) \
|
||||||
-k $(BIN_DIR)/openwrt-$(BOARD)-vmlinux.lzma \
|
-k $(BIN_DIR)/$(IMG_PREFIX)-vmlinux.lzma \
|
||||||
-r $(BIN_DIR)/openwrt-$(BOARD)-root.$(1) \
|
-r $(BIN_DIR)/$(IMG_PREFIX)-root.$(1) \
|
||||||
-o $(BIN_DIR)/openwrt-$(BOARD)-ubnt2-$(1).bin
|
-o $(BIN_DIR)/$(IMG_PREFIX)-ubnt2-$(1).bin
|
||||||
|
|
||||||
-$(STAGING_DIR_HOST)/bin/mkfwimage \
|
-$(STAGING_DIR_HOST)/bin/mkfwimage \
|
||||||
-B XS5 -v XS5.ar2313.OpenWrt.$(REVISION) \
|
-B XS5 -v XS5.ar2313.OpenWrt.$(REVISION) \
|
||||||
-k $(BIN_DIR)/openwrt-$(BOARD)-vmlinux.lzma \
|
-k $(BIN_DIR)/$(IMG_PREFIX)-vmlinux.lzma \
|
||||||
-r $(BIN_DIR)/openwrt-$(BOARD)-root.$(1) \
|
-r $(BIN_DIR)/$(IMG_PREFIX)-root.$(1) \
|
||||||
-o $(BIN_DIR)/openwrt-$(BOARD)-ubnt5-$(1).bin
|
-o $(BIN_DIR)/$(IMG_PREFIX)-ubnt5-$(1).bin
|
||||||
|
|
||||||
-$(STAGING_DIR_HOST)/bin/mkfwimage \
|
-$(STAGING_DIR_HOST)/bin/mkfwimage \
|
||||||
-B XS2-8 -v XS2.ar2316.OpenWrt.$(REVISION) \
|
-B XS2-8 -v XS2.ar2316.OpenWrt.$(REVISION) \
|
||||||
-k $(BIN_DIR)/openwrt-$(BOARD)-vmlinux.lzma \
|
-k $(BIN_DIR)/$(IMG_PREFIX)-vmlinux.lzma \
|
||||||
-r $(BIN_DIR)/openwrt-$(BOARD)-root.$(1) \
|
-r $(BIN_DIR)/$(IMG_PREFIX)-root.$(1) \
|
||||||
-o $(BIN_DIR)/openwrt-$(BOARD)-ubnt2-pico2-$(1).bin
|
-o $(BIN_DIR)/$(IMG_PREFIX)-ubnt2-pico2-$(1).bin
|
||||||
|
|
||||||
-$(STAGING_DIR_HOST)/bin/mkmylofw -B np25g \
|
-$(STAGING_DIR_HOST)/bin/mkmylofw -B np25g \
|
||||||
-p0x020000:0x130000:ah:0x80041000:linux:$(KDIR)/vmlinux.bin.gz \
|
-p0x020000:0x130000:ah:0x80041000:linux:$(KDIR)/vmlinux.bin.gz \
|
||||||
-p0x150000:0x2a0000:::rootfs:$(BIN_DIR)/openwrt-$(BOARD)-root.$(1) \
|
-p0x150000:0x2a0000:::rootfs:$(BIN_DIR)/$(IMG_PREFIX)-root.$(1) \
|
||||||
$(BIN_DIR)/openwrt-$(BOARD)-np25g-$(1).bin
|
$(BIN_DIR)/$(IMG_PREFIX)-np25g-$(1).bin
|
||||||
|
|
||||||
-$(STAGING_DIR_HOST)/bin/mkmylofw -B wpe53g \
|
-$(STAGING_DIR_HOST)/bin/mkmylofw -B wpe53g \
|
||||||
-p0x020000:0x130000:ah:0x80041000:linux:$(KDIR)/vmlinux.bin.gz \
|
-p0x020000:0x130000:ah:0x80041000:linux:$(KDIR)/vmlinux.bin.gz \
|
||||||
-p0x150000:0x2a0000:::rootfs:$(BIN_DIR)/openwrt-$(BOARD)-root.$(1) \
|
-p0x150000:0x2a0000:::rootfs:$(BIN_DIR)/$(IMG_PREFIX)-root.$(1) \
|
||||||
$(BIN_DIR)/openwrt-$(BOARD)-wpe53g-$(1).bin
|
$(BIN_DIR)/$(IMG_PREFIX)-wpe53g-$(1).bin
|
||||||
|
|
||||||
ifeq ($(BOARD),atheros)
|
ifeq ($(BOARD),atheros)
|
||||||
-sh $(TOPDIR)/scripts/combined-image.sh \
|
-sh $(TOPDIR)/scripts/combined-image.sh \
|
||||||
"$(BIN_DIR)/openwrt-$(BOARD)-vmlinux.lzma" \
|
"$(BIN_DIR)/$(IMG_PREFIX)-vmlinux.lzma" \
|
||||||
"$(BIN_DIR)/openwrt-$(BOARD)-root.$(1)" \
|
"$(BIN_DIR)/$(IMG_PREFIX)-root.$(1)" \
|
||||||
"$(BIN_DIR)/openwrt-$(BOARD)-combined.$(1).img"
|
"$(BIN_DIR)/$(IMG_PREFIX)-combined.$(1).img"
|
||||||
endif
|
endif
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2006 OpenWrt.org
|
# Copyright (C) 2006-2010 OpenWrt.org
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
@ -51,17 +51,17 @@ define Image/Prepare
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build/Initramfs
|
define Image/Build/Initramfs
|
||||||
$(OBJCOPY_SREC) $(BIN_DIR)/openwrt-$(BOARD)-vmlinux.elf $(BIN_DIR)/openwrt-$(BOARD)-vmlinux.srec
|
$(OBJCOPY_SREC) $(BIN_DIR)/$(IMG_PREFIX)-vmlinux.elf $(BIN_DIR)/$(IMG_PREFIX)-vmlinux.srec
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build
|
define Image/Build
|
||||||
$(TARGET_CROSS)objcopy -O srec -I binary --adjust-vma $(FLASH_FS) $(KDIR)/root.$(1) $(KDIR)/root.$(1).srec
|
$(TARGET_CROSS)objcopy -O srec -I binary --adjust-vma $(FLASH_FS) $(KDIR)/root.$(1) $(KDIR)/root.$(1).srec
|
||||||
grep -v S7 $(KDIR)/root.$(1).srec > $(BIN_DIR)/openwrt-$(BOARD)-$(1).srec
|
grep -v S7 $(KDIR)/root.$(1).srec > $(BIN_DIR)/$(IMG_PREFIX)-$(1).srec
|
||||||
grep -v S0 $(KDIR)/kernel.flash.srec >> $(BIN_DIR)/openwrt-$(BOARD)-$(1).srec
|
grep -v S0 $(KDIR)/kernel.flash.srec >> $(BIN_DIR)/$(IMG_PREFIX)-$(1).srec
|
||||||
$(INSTALL_BIN) $(KDIR)/kernel.flash.bin $(BIN_DIR)/openwrt-$(BOARD)-vmlinux.bin
|
$(INSTALL_BIN) $(KDIR)/kernel.flash.bin $(BIN_DIR)/$(IMG_PREFIX)-vmlinux.bin
|
||||||
$(CP) $(KDIR)/root.$(1) $(BIN_DIR)/openwrt-$(BOARD)-$(1).fs
|
$(CP) $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1).fs
|
||||||
$(CP) $(KDIR)/kernel.flash.srec $(BIN_DIR)/openwrt-$(BOARD)-vmlinux-flash.srec
|
$(CP) $(KDIR)/kernel.flash.srec $(BIN_DIR)/$(IMG_PREFIX)-vmlinux-flash.srec
|
||||||
$(CP) $(KDIR)/kernel.ram.srec $(BIN_DIR)/openwrt-$(BOARD)-vmlinux-ram.srec
|
$(CP) $(KDIR)/kernel.ram.srec $(BIN_DIR)/$(IMG_PREFIX)-vmlinux-ram.srec
|
||||||
ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
|
ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
|
||||||
$(call Image/Build/Initramfs)
|
$(call Image/Build/Initramfs)
|
||||||
endif
|
endif
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2007-2008 OpenWrt.org
|
# Copyright (C) 2007-2010 OpenWrt.org
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
#
|
#
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
include $(INCLUDE_DIR)/image.mk
|
include $(INCLUDE_DIR)/image.mk
|
||||||
|
|
||||||
@ -23,7 +22,7 @@ define Image/Prepare
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/BuildKernel
|
define Image/BuildKernel
|
||||||
cp $(KDIR)/uImage $(BIN_DIR)/openwrt-$(BOARD)-uImage
|
cp $(KDIR)/uImage $(BIN_DIR)/$(IMG_PREFIX)-uImage
|
||||||
|
|
||||||
$(STAGING_DIR_HOST)/bin/lzma e $(LINUX_DIR)/arch/avr32/boot/images/vmlinux.bin $(KDIR)/vmlinux.lzma
|
$(STAGING_DIR_HOST)/bin/lzma e $(LINUX_DIR)/arch/avr32/boot/images/vmlinux.bin $(KDIR)/vmlinux.lzma
|
||||||
mkimage -A avr32 -O linux -T kernel -a 0x10000000 -C lzma \
|
mkimage -A avr32 -O linux -T kernel -a 0x10000000 -C lzma \
|
||||||
@ -31,7 +30,7 @@ define Image/BuildKernel
|
|||||||
-n 'OpenWrt Linux-$(LINUX_VERSION)' \
|
-n 'OpenWrt Linux-$(LINUX_VERSION)' \
|
||||||
-d $(KDIR)/vmlinux.lzma $(KDIR)/uImage-lzma
|
-d $(KDIR)/vmlinux.lzma $(KDIR)/uImage-lzma
|
||||||
|
|
||||||
cp $(KDIR)/uImage-lzma $(BIN_DIR)/openwrt-$(BOARD)-uImage-lzma
|
cp $(KDIR)/uImage-lzma $(BIN_DIR)/$(IMG_PREFIX)-uImage-lzma
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build
|
define Image/Build
|
||||||
@ -43,14 +42,14 @@ define Image/Build/squashfs
|
|||||||
( \
|
( \
|
||||||
dd if=$(KDIR)/uImage bs=1024k conv=sync; \
|
dd if=$(KDIR)/uImage bs=1024k conv=sync; \
|
||||||
dd if=$(KDIR)/root.$(1) bs=64k conv=sync; \
|
dd if=$(KDIR)/root.$(1) bs=64k conv=sync; \
|
||||||
) > $(BIN_DIR)/openwrt-$(BOARD)-$(1).img
|
) > $(BIN_DIR)/$(IMG_PREFIX)-$(1).img
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build/jffs2-64k
|
define Image/Build/jffs2-64k
|
||||||
( \
|
( \
|
||||||
dd if=$(KDIR)/uImage bs=1024k conv=sync; \
|
dd if=$(KDIR)/uImage bs=1024k conv=sync; \
|
||||||
dd if=$(KDIR)/root.$(1) bs=64k conv=sync; \
|
dd if=$(KDIR)/root.$(1) bs=64k conv=sync; \
|
||||||
) > $(BIN_DIR)/openwrt-$(BOARD)-$(1).img
|
) > $(BIN_DIR)/$(IMG_PREFIX)-$(1).img
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildImage))
|
$(eval $(call BuildImage))
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2006 OpenWrt.org
|
# Copyright (C) 2006-2010 OpenWrt.org
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
@ -27,26 +27,26 @@ endef
|
|||||||
ifneq ($(KERNEL),2.4)
|
ifneq ($(KERNEL),2.4)
|
||||||
define Image/Build/wgt634u
|
define Image/Build/wgt634u
|
||||||
dd if=$(KDIR)/loader.elf of=$(BIN_DIR)/openwrt-wgt634u-$(2).bin bs=131072 conv=sync
|
dd if=$(KDIR)/loader.elf of=$(BIN_DIR)/openwrt-wgt634u-$(2).bin bs=131072 conv=sync
|
||||||
cat $(BIN_DIR)/openwrt-$(BOARD)-$(1).trx >> $(BIN_DIR)/openwrt-wgt634u-$(2).bin
|
cat $(BIN_DIR)/$(IMG_PREFIX)-$(1).trx >> $(BIN_DIR)/openwrt-wgt634u-$(2).bin
|
||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
|
|
||||||
define Image/Build/CyberTAN
|
define Image/Build/CyberTAN
|
||||||
$(STAGING_DIR_HOST)/bin/addpattern -4 -p $(3) -v v$(4) -i $(BIN_DIR)/openwrt-$(BOARD)-$(1).trx -o $(BIN_DIR)/openwrt-$(2)-$(5).bin $(if $(6),-s $(6))
|
$(STAGING_DIR_HOST)/bin/addpattern -4 -p $(3) -v v$(4) -i $(BIN_DIR)/$(IMG_PREFIX)-$(1).trx -o $(BIN_DIR)/openwrt-$(2)-$(5).bin $(if $(6),-s $(6))
|
||||||
endef
|
endef
|
||||||
define Image/Build/CyberTAN2
|
define Image/Build/CyberTAN2
|
||||||
$(STAGING_DIR_HOST)/bin/addpattern -4 -p $(3) -v v$(4) -i $(BIN_DIR)/openwrt-$(BOARD)-$(1).trx2 -o $(BIN_DIR)/openwrt-$(2)-$(5).bin $(if $(6),-s $(6))
|
$(STAGING_DIR_HOST)/bin/addpattern -4 -p $(3) -v v$(4) -i $(BIN_DIR)/$(IMG_PREFIX)-$(1).trx2 -o $(BIN_DIR)/openwrt-$(2)-$(5).bin $(if $(6),-s $(6))
|
||||||
endef
|
endef
|
||||||
define Image/Build/CyberTANHead
|
define Image/Build/CyberTANHead
|
||||||
$(STAGING_DIR_HOST)/bin/addpattern -5 -p $(3) -v v$(4) -i /dev/null -o $(KDIR)/openwrt-$(2)-header.bin $(if $(6),-s $(6))
|
$(STAGING_DIR_HOST)/bin/addpattern -5 -p $(3) -v v$(4) -i /dev/null -o $(KDIR)/openwrt-$(2)-header.bin $(if $(6),-s $(6))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build/Motorola
|
define Image/Build/Motorola
|
||||||
$(STAGING_DIR_HOST)/bin/motorola-bin -$(3) $(BIN_DIR)/openwrt-$(BOARD)-$(1).trx $(BIN_DIR)/openwrt-$(2)-$(4).bin
|
$(STAGING_DIR_HOST)/bin/motorola-bin -$(3) $(BIN_DIR)/$(IMG_PREFIX)-$(1).trx $(BIN_DIR)/openwrt-$(2)-$(4).bin
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build/USR
|
define Image/Build/USR
|
||||||
$(STAGING_DIR_HOST)/bin/trx2usr $(BIN_DIR)/openwrt-$(BOARD)-$(1).trx $(BIN_DIR)/openwrt-$(2)-$(3).bin
|
$(STAGING_DIR_HOST)/bin/trx2usr $(BIN_DIR)/$(IMG_PREFIX)-$(1).trx $(BIN_DIR)/openwrt-$(2)-$(3).bin
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define trxalign/jffs2-128k
|
define trxalign/jffs2-128k
|
||||||
@ -61,7 +61,7 @@ endef
|
|||||||
|
|
||||||
define Image/Build/trxV2
|
define Image/Build/trxV2
|
||||||
$(call Image/Build/CyberTANHead,$(1),$(2),$(3),$(4),$(5),$(if $(6),$(6)))
|
$(call Image/Build/CyberTANHead,$(1),$(2),$(3),$(4),$(5),$(if $(6),$(6)))
|
||||||
$(STAGING_DIR_HOST)/bin/trx -2 -o $(BIN_DIR)/openwrt-$(BOARD)-$(1).trx2 \
|
$(STAGING_DIR_HOST)/bin/trx -2 -o $(BIN_DIR)/$(IMG_PREFIX)-$(1).trx2 \
|
||||||
-f $(KDIR)/loader.gz -f $(KDIR)/vmlinux.lzma \
|
-f $(KDIR)/loader.gz -f $(KDIR)/vmlinux.lzma \
|
||||||
$(call trxalign/$(1),$(1),$(KDIR)/openwrt-$(2)-header.bin)
|
$(call trxalign/$(1),$(1),$(KDIR)/openwrt-$(2)-header.bin)
|
||||||
$(call Image/Build/CyberTAN2,$(1),$(2),$(3),$(4),$(5),$(if $(6),$(6)))
|
$(call Image/Build/CyberTAN2,$(1),$(2),$(3),$(4),$(5),$(if $(6),$(6)))
|
||||||
@ -95,11 +95,11 @@ define Image/Build/squashfs
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build/Initramfs
|
define Image/Build/Initramfs
|
||||||
$(STAGING_DIR_HOST)/bin/trx -o $(BIN_DIR)/openwrt-$(BOARD)-initramfs.trx -f $(KDIR)/loader.gz -f $(KDIR)/vmlinux.lzma
|
$(STAGING_DIR_HOST)/bin/trx -o $(BIN_DIR)/$(IMG_PREFIX)-initramfs.trx -f $(KDIR)/loader.gz -f $(KDIR)/vmlinux.lzma
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build
|
define Image/Build
|
||||||
$(STAGING_DIR_HOST)/bin/trx -o $(BIN_DIR)/openwrt-$(BOARD)-$(1).trx \
|
$(STAGING_DIR_HOST)/bin/trx -o $(BIN_DIR)/$(IMG_PREFIX)-$(1).trx \
|
||||||
-f $(KDIR)/loader.gz -f $(KDIR)/vmlinux.lzma \
|
-f $(KDIR)/loader.gz -f $(KDIR)/vmlinux.lzma \
|
||||||
$(call trxalign/$(1),$(1))
|
$(call trxalign/$(1),$(1))
|
||||||
$(call Image/Build/$(1),$(1))
|
$(call Image/Build/$(1),$(1))
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2006 OpenWrt.org
|
# Copyright (C) 2006-2010 OpenWrt.org
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
@ -103,7 +103,7 @@ define Image/Prepare
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build
|
define Image/Build
|
||||||
dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/openwrt-$(BOARD)-root.$(1) bs=128k conv=sync
|
dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/$(IMG_PREFIX)-root.$(1) bs=128k conv=sync
|
||||||
# Various routers
|
# Various routers
|
||||||
$(call Image/Build/CFE,$(1),96345GW2,6345,96345GW2-generic)
|
$(call Image/Build/CFE,$(1),96345GW2,6345,96345GW2-generic)
|
||||||
$(call Image/Build/CFE,$(1),96345GW2,6345,96348GW2-bc221,,-y 5)
|
$(call Image/Build/CFE,$(1),96345GW2,6345,96348GW2-bc221,,-y 5)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2009 OpenWrt.org
|
# Copyright (C) 2009-2010 OpenWrt.org
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
include $(INCLUDE_DIR)/image.mk
|
include $(INCLUDE_DIR)/image.mk
|
||||||
|
|
||||||
define Image/BuildKernel
|
define Image/BuildKernel
|
||||||
cp $(KDIR)/vmlinux.elf $(BIN_DIR)/openwrt-$(BOARD)-vmlinux.elf
|
cp $(KDIR)/vmlinux.elf $(BIN_DIR)/$(IMG_PREFIX)-vmlinux.elf
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build/squashfs
|
define Image/Build/squashfs
|
||||||
@ -17,7 +17,7 @@ endef
|
|||||||
|
|
||||||
define Image/Build
|
define Image/Build
|
||||||
$(call Image/Build/$(1))
|
$(call Image/Build/$(1))
|
||||||
dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/openwrt-$(BOARD)-root.$(1) bs=128k conv=sync
|
dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/$(IMG_PREFIX)-root.$(1) bs=128k conv=sync
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildImage))
|
$(eval $(call BuildImage))
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2006 OpenWrt.org
|
# Copyright (C) 2006-2010 OpenWrt.org
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2006 OpenWrt.org
|
# Copyright (C) 2006-2010 OpenWrt.org
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
@ -14,22 +14,22 @@ define Image/BuildKernel
|
|||||||
-n 'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
|
-n 'MIPS OpenWrt Linux-$(LINUX_VERSION)' \
|
||||||
-d $(KDIR)/vmlinux.lzma $(KDIR)/uImage
|
-d $(KDIR)/vmlinux.lzma $(KDIR)/uImage
|
||||||
|
|
||||||
cp $(KDIR)/uImage $(BIN_DIR)/openwrt-$(BOARD)-uImage
|
cp $(KDIR)/uImage $(BIN_DIR)/$(IMG_PREFIX)-uImage
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build/squashfs
|
define Image/Build/squashfs
|
||||||
cat $(KDIR)/uImage $(KDIR)/root.$(1) > $(BIN_DIR)/openwrt-$(BOARD)-$(1).image
|
cat $(KDIR)/uImage $(KDIR)/root.$(1) > $(BIN_DIR)/$(IMG_PREFIX)-$(1).image
|
||||||
$(call prepare_generic_squashfs,$(BIN_DIR)/openwrt-$(BOARD)-$(1).image)
|
$(call prepare_generic_squashfs,$(BIN_DIR)/$(IMG_PREFIX)-$(1).image)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build/jffs2-64k
|
define Image/Build/jffs2-64k
|
||||||
dd if=$(KDIR)/uImage of=$(KDIR)/uImage.$(1) bs=64k conv=sync
|
dd if=$(KDIR)/uImage of=$(KDIR)/uImage.$(1) bs=64k conv=sync
|
||||||
cat $(KDIR)/uImage.$(1) $(KDIR)/root.$(1) > $(BIN_DIR)/openwrt-$(BOARD)-$(1).image
|
cat $(KDIR)/uImage.$(1) $(KDIR)/root.$(1) > $(BIN_DIR)/$(IMG_PREFIX)-$(1).image
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build/jffs2-128k
|
define Image/Build/jffs2-128k
|
||||||
dd if=$(KDIR)/uImage of=$(KDIR)/uImage.$(1) bs=128k conv=sync
|
dd if=$(KDIR)/uImage of=$(KDIR)/uImage.$(1) bs=128k conv=sync
|
||||||
cat $(KDIR)/uImage.$(1) $(KDIR)/root.$(1) > $(BIN_DIR)/openwrt-$(BOARD)-$(1).image
|
cat $(KDIR)/uImage.$(1) $(KDIR)/root.$(1) > $(BIN_DIR)/$(IMG_PREFIX)-$(1).image
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build
|
define Image/Build
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2006 OpenWrt.org
|
# Copyright (C) 2006-2010 OpenWrt.org
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
@ -12,12 +12,12 @@ ifdef CONFIG_PACKAGE_apex
|
|||||||
BIN_DIR=$(BIN_DIR) $(TOPDIR)/scripts/slugimage.pl \
|
BIN_DIR=$(BIN_DIR) $(TOPDIR)/scripts/slugimage.pl \
|
||||||
-L $(BIN_DIR)/apex/apex-$(2)-armeb.bin \
|
-L $(BIN_DIR)/apex/apex-$(2)-armeb.bin \
|
||||||
-k $(BIN_DIR)/openwrt-$(2)-zImage \
|
-k $(BIN_DIR)/openwrt-$(2)-zImage \
|
||||||
-r rootfs:$(BIN_DIR)/openwrt-$(BOARD)-$(1).img \
|
-r rootfs:$(BIN_DIR)/$(IMG_PREFIX)-$(1).img \
|
||||||
-p -o $(BIN_DIR)/openwrt-$(2)-$(1).bin
|
-p -o $(BIN_DIR)/openwrt-$(2)-$(1).bin
|
||||||
BIN_DIR=$(BIN_DIR) $(TOPDIR)/scripts/slugimage.pl \
|
BIN_DIR=$(BIN_DIR) $(TOPDIR)/scripts/slugimage.pl \
|
||||||
-F -L $(BIN_DIR)/apex/apex-$(2)-16mb-armeb.bin \
|
-F -L $(BIN_DIR)/apex/apex-$(2)-16mb-armeb.bin \
|
||||||
-k $(BIN_DIR)/openwrt-$(2)-zImage \
|
-k $(BIN_DIR)/openwrt-$(2)-zImage \
|
||||||
-r rootfs:$(BIN_DIR)/openwrt-$(BOARD)-$(1).img \
|
-r rootfs:$(BIN_DIR)/$(IMG_PREFIX)-$(1).img \
|
||||||
-p -o $(BIN_DIR)/openwrt-$(2)-$(1)-16mb.bin
|
-p -o $(BIN_DIR)/openwrt-$(2)-$(1)-16mb.bin
|
||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
@ -36,8 +36,8 @@ define Image/Prepare
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/BuildKernel
|
define Image/BuildKernel
|
||||||
cp $(KDIR)/zImage $(BIN_DIR)/openwrt-$(BOARD)-zImage
|
cp $(KDIR)/zImage $(BIN_DIR)/$(IMG_PREFIX)-zImage
|
||||||
BIN_DIR=$(BIN_DIR) $(TOPDIR)/scripts/arm-magic.sh
|
BIN_DIR=$(BIN_DIR) IMG_PREFIX="$(IMG_PREFIX)" $(TOPDIR)/scripts/arm-magic.sh
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build
|
define Image/Build
|
||||||
@ -45,18 +45,18 @@ define Image/Build
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build/jffs2-64k
|
define Image/Build/jffs2-64k
|
||||||
dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/openwrt-$(BOARD)-$(1).img bs=65536 conv=sync
|
dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/$(IMG_PREFIX)-$(1).img bs=65536 conv=sync
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build/jffs2-128k
|
define Image/Build/jffs2-128k
|
||||||
dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/openwrt-$(BOARD)-$(1).img bs=131072 conv=sync
|
dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/$(IMG_PREFIX)-$(1).img bs=131072 conv=sync
|
||||||
$(call Image/Build/Linksys,$(1))
|
$(call Image/Build/Linksys,$(1))
|
||||||
$(call Image/Build/Freecom,$(1),fsg3,$(1))
|
$(call Image/Build/Freecom,$(1),fsg3,$(1))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build/squashfs
|
define Image/Build/squashfs
|
||||||
$(call prepare_generic_squashfs,$(KDIR)/root.squashfs)
|
$(call prepare_generic_squashfs,$(KDIR)/root.squashfs)
|
||||||
dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/openwrt-$(BOARD)-$(1).img bs=131072 conv=sync
|
dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/$(IMG_PREFIX)-$(1).img bs=131072 conv=sync
|
||||||
$(call Image/Build/Linksys,$(1),nslu2,$(1))
|
$(call Image/Build/Linksys,$(1),nslu2,$(1))
|
||||||
$(call Image/Build/Freecom,$(1),fsg3,$(1))
|
$(call Image/Build/Freecom,$(1),fsg3,$(1))
|
||||||
endef
|
endef
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2009 OpenWrt.org
|
# Copyright (C) 2009-2010 OpenWrt.org
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
@ -15,7 +15,7 @@ endef
|
|||||||
|
|
||||||
define Image/BuildKernel
|
define Image/BuildKernel
|
||||||
# do mach-id fixup here, if needed
|
# do mach-id fixup here, if needed
|
||||||
cp $(KDIR)/uImage $(BIN_DIR)/openwrt-$(BOARD)-uImage
|
cp $(KDIR)/uImage $(BIN_DIR)/$(IMG_PREFIX)-uImage
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build
|
define Image/Build
|
||||||
@ -26,7 +26,7 @@ define Image/Build/jffs2-128k
|
|||||||
( \
|
( \
|
||||||
dd if=$(KDIR)/uImage bs=4096k conv=sync; \
|
dd if=$(KDIR)/uImage bs=4096k conv=sync; \
|
||||||
dd if=$(KDIR)/root.$(1) bs=128k conv=sync; \
|
dd if=$(KDIR)/root.$(1) bs=128k conv=sync; \
|
||||||
) > $(BIN_DIR)/openwrt-$(BOARD)-$(1).img
|
) > $(BIN_DIR)/$(IMG_PREFIX)-$(1).img
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build/squashfs
|
define Image/Build/squashfs
|
||||||
@ -34,7 +34,7 @@ define Image/Build/squashfs
|
|||||||
( \
|
( \
|
||||||
dd if=$(KDIR)/uImage bs=4096k conv=sync; \
|
dd if=$(KDIR)/uImage bs=4096k conv=sync; \
|
||||||
dd if=$(KDIR)/root.$(1) bs=128k conv=sync; \
|
dd if=$(KDIR)/root.$(1) bs=128k conv=sync; \
|
||||||
) > $(BIN_DIR)/openwrt-$(BOARD)-$(1).img
|
) > $(BIN_DIR)/$(IMG_PREFIX)-$(1).img
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildImage))
|
$(eval $(call BuildImage))
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2009 OpenWrt.org
|
# Copyright (C) 2009-2010 OpenWrt.org
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
@ -9,9 +9,9 @@ include $(INCLUDE_DIR)/image.mk
|
|||||||
|
|
||||||
define Image/BuildKernel
|
define Image/BuildKernel
|
||||||
# Workaround pre-SDK-1.9.0 u-boot versions not handling the .notes section
|
# Workaround pre-SDK-1.9.0 u-boot versions not handling the .notes section
|
||||||
$(TARGET_CROSS)strip -R .notes $(KDIR)/vmlinux.elf -o $(BIN_DIR)/openwrt-$(BOARD)-vmlinux.elf
|
$(TARGET_CROSS)strip -R .notes $(KDIR)/vmlinux.elf -o $(BIN_DIR)/$(IMG_PREFIX)-vmlinux.elf
|
||||||
$(STAGING_DIR_HOST)/bin/lzma e $(KDIR)/vmlinux $(KDIR)/vmlinux.bin.l7
|
$(STAGING_DIR_HOST)/bin/lzma e $(KDIR)/vmlinux $(KDIR)/vmlinux.bin.l7
|
||||||
dd if=$(KDIR)/vmlinux.bin.l7 of=$(BIN_DIR)/openwrt-$(BOARD)-vmlinux.lzma bs=65536 conv=sync
|
dd if=$(KDIR)/vmlinux.bin.l7 of=$(BIN_DIR)/$(IMG_PREFIX)-vmlinux.lzma bs=65536 conv=sync
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build/squashfs
|
define Image/Build/squashfs
|
||||||
@ -20,7 +20,7 @@ endef
|
|||||||
|
|
||||||
define Image/Build
|
define Image/Build
|
||||||
$(call Image/Build/$(1))
|
$(call Image/Build/$(1))
|
||||||
dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/openwrt-$(BOARD)-root.$(1) bs=128k conv=sync
|
dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/$(IMG_PREFIX)-root.$(1) bs=128k conv=sync
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildImage))
|
$(eval $(call BuildImage))
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
#
|
#
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
include $(INCLUDE_DIR)/image.mk
|
include $(INCLUDE_DIR)/image.mk
|
||||||
|
|
||||||
@ -101,7 +100,7 @@ define Image/Build/squashfs
|
|||||||
( \
|
( \
|
||||||
dd if=$(KDIR)/uImage bs=1024k conv=sync; \
|
dd if=$(KDIR)/uImage bs=1024k conv=sync; \
|
||||||
dd if=$(KDIR)/root.$(1) bs=128k conv=sync; \
|
dd if=$(KDIR)/root.$(1) bs=128k conv=sync; \
|
||||||
) > $(BIN_DIR)/openwrt-$(BOARD)-$(1).img
|
) > $(BIN_DIR)/$(IMG_PREFIX)-$(1).img
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildImage))
|
$(eval $(call BuildImage))
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2008-2009 OpenWrt.org
|
# Copyright (C) 2008-2010 OpenWrt.org
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
@ -15,7 +15,7 @@ define Image/Prepare
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/BuildKernel
|
define Image/BuildKernel
|
||||||
cp $(KDIR)/uImage $(BIN_DIR)/openwrt-$(BOARD)-uImage
|
cp $(KDIR)/uImage $(BIN_DIR)/$(IMG_PREFIX)-uImage
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build
|
define Image/Build
|
||||||
@ -23,7 +23,7 @@ define Image/Build
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build/ext2
|
define Image/Build/ext2
|
||||||
cp $(KDIR)/root.$(1) $(BIN_DIR)/openwrt-$(BOARD)-ext2.img
|
cp $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_PREFIX)-ext2.img
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build/jffs2-128k
|
define Image/Build/jffs2-128k
|
||||||
@ -31,18 +31,18 @@ define Image/Build/jffs2-128k
|
|||||||
dd if=$(LINUX_DIR)/arch/powerpc/boot/uImage bs=1920k conv=sync; \
|
dd if=$(LINUX_DIR)/arch/powerpc/boot/uImage bs=1920k conv=sync; \
|
||||||
dd if=$(KDIR)/openwrt-kilauea.dtb bs=128k conv=sync; \
|
dd if=$(KDIR)/openwrt-kilauea.dtb bs=128k conv=sync; \
|
||||||
dd if=$(KDIR)/root.$(1) bs=128k conv=sync; \
|
dd if=$(KDIR)/root.$(1) bs=128k conv=sync; \
|
||||||
) > $(BIN_DIR)/openwrt-$(BOARD)-kilauea-jffs2.img
|
) > $(BIN_DIR)/$(IMG_PREFIX)-kilauea-jffs2.img
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build/jffs2-64k
|
define Image/Build/jffs2-64k
|
||||||
( \
|
( \
|
||||||
dd if=$(LINUX_DIR)/arch/powerpc/boot/cuImage.magicbox bs=1280k conv=sync; \
|
dd if=$(LINUX_DIR)/arch/powerpc/boot/cuImage.magicbox bs=1280k conv=sync; \
|
||||||
dd if=$(KDIR)/root.$(1) bs=64k conv=sync; \
|
dd if=$(KDIR)/root.$(1) bs=64k conv=sync; \
|
||||||
) > $(BIN_DIR)/openwrt-$(BOARD)-magicbox-jffs2.img
|
) > $(BIN_DIR)/$(IMG_PREFIX)-magicbox-jffs2.img
|
||||||
( \
|
( \
|
||||||
dd if=$(LINUX_DIR)/arch/powerpc/boot/cuImage.openrb bs=1280k conv=sync; \
|
dd if=$(LINUX_DIR)/arch/powerpc/boot/cuImage.openrb bs=1280k conv=sync; \
|
||||||
dd if=$(KDIR)/root.$(1) bs=64k conv=sync; \
|
dd if=$(KDIR)/root.$(1) bs=64k conv=sync; \
|
||||||
) > $(BIN_DIR)/openwrt-$(BOARD)-openrb-jffs2.img
|
) > $(BIN_DIR)/$(IMG_PREFIX)-openrb-jffs2.img
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build/squashfs
|
define Image/Build/squashfs
|
||||||
@ -51,15 +51,15 @@ define Image/Build/squashfs
|
|||||||
dd if=$(LINUX_DIR)/arch/powerpc/boot/uImage bs=1920k conv=sync; \
|
dd if=$(LINUX_DIR)/arch/powerpc/boot/uImage bs=1920k conv=sync; \
|
||||||
dd if=$(KDIR)/openwrt-kilauea.dtb bs=128k conv=sync; \
|
dd if=$(KDIR)/openwrt-kilauea.dtb bs=128k conv=sync; \
|
||||||
dd if=$(KDIR)/root.$(1) bs=128k conv=sync; \
|
dd if=$(KDIR)/root.$(1) bs=128k conv=sync; \
|
||||||
) > $(BIN_DIR)/openwrt-$(BOARD)-kilauea-$(1).img
|
) > $(BIN_DIR)/$(IMG_PREFIX)-kilauea-$(1).img
|
||||||
( \
|
( \
|
||||||
dd if=$(LINUX_DIR)/arch/powerpc/boot/cuImage.magicbox bs=1280k conv=sync; \
|
dd if=$(LINUX_DIR)/arch/powerpc/boot/cuImage.magicbox bs=1280k conv=sync; \
|
||||||
dd if=$(KDIR)/root.$(1) bs=64k conv=sync; \
|
dd if=$(KDIR)/root.$(1) bs=64k conv=sync; \
|
||||||
) > $(BIN_DIR)/openwrt-$(BOARD)-magicbox-$(1).img
|
) > $(BIN_DIR)/$(IMG_PREFIX)-magicbox-$(1).img
|
||||||
( \
|
( \
|
||||||
dd if=$(LINUX_DIR)/arch/powerpc/boot/cuImage.openrb bs=1280k conv=sync; \
|
dd if=$(LINUX_DIR)/arch/powerpc/boot/cuImage.openrb bs=1280k conv=sync; \
|
||||||
dd if=$(KDIR)/root.$(1) bs=64k conv=sync; \
|
dd if=$(KDIR)/root.$(1) bs=64k conv=sync; \
|
||||||
) > $(BIN_DIR)/openwrt-$(BOARD)-openrb-$(1).img
|
) > $(BIN_DIR)/$(IMG_PREFIX)-openrb-$(1).img
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildImage))
|
$(eval $(call BuildImage))
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2007-2009 OpenWrt.org
|
# Copyright (C) 2007-2010 OpenWrt.org
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
@ -15,7 +15,7 @@ define Image/Prepare
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/BuildKernel
|
define Image/BuildKernel
|
||||||
cp $(KDIR)/uImage $(BIN_DIR)/openwrt-$(BOARD)-uImage
|
cp $(KDIR)/uImage $(BIN_DIR)/$(IMG_PREFIX)-uImage
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build
|
define Image/Build
|
||||||
@ -26,7 +26,7 @@ define Image/Build/jffs2-256k
|
|||||||
( \
|
( \
|
||||||
dd if=$(KDIR)/uImage bs=2048k conv=sync; \
|
dd if=$(KDIR)/uImage bs=2048k conv=sync; \
|
||||||
dd if=$(KDIR)/root.$(1) bs=256k conv=sync; \
|
dd if=$(KDIR)/root.$(1) bs=256k conv=sync; \
|
||||||
) > $(BIN_DIR)/openwrt-$(BOARD)-jffs2.img
|
) > $(BIN_DIR)/$(IMG_PREFIX)-jffs2.img
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build/squashfs
|
define Image/Build/squashfs
|
||||||
@ -34,12 +34,12 @@ define Image/Build/squashfs
|
|||||||
( \
|
( \
|
||||||
dd if=$(KDIR)/uImage bs=2048k conv=sync; \
|
dd if=$(KDIR)/uImage bs=2048k conv=sync; \
|
||||||
dd if=$(KDIR)/root.$(1) bs=256k conv=sync; \
|
dd if=$(KDIR)/root.$(1) bs=256k conv=sync; \
|
||||||
) > $(BIN_DIR)/openwrt-$(BOARD)-taishan-$(1).img
|
) > $(BIN_DIR)/$(IMG_PREFIX)-taishan-$(1).img
|
||||||
( \
|
( \
|
||||||
dd if=$(LINUX_DIR)/arch/powerpc/boot/uImage bs=1920k conv=sync; \
|
dd if=$(LINUX_DIR)/arch/powerpc/boot/uImage bs=1920k conv=sync; \
|
||||||
dd if=$(KDIR)/openwrt-canyonlands.dtb bs=128k conv=sync; \
|
dd if=$(KDIR)/openwrt-canyonlands.dtb bs=128k conv=sync; \
|
||||||
dd if=$(KDIR)/root.$(1) bs=256k conv=sync; \
|
dd if=$(KDIR)/root.$(1) bs=256k conv=sync; \
|
||||||
) > $(BIN_DIR)/openwrt-$(BOARD)-canyonlands-$(1).img
|
) > $(BIN_DIR)/$(IMG_PREFIX)-canyonlands-$(1).img
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildImage))
|
$(eval $(call BuildImage))
|
||||||
|
@ -1,12 +1,11 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2006 OpenWrt.org
|
# Copyright (C) 2006-2010 OpenWrt.org
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
#
|
#
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
include $(INCLUDE_DIR)/image.mk
|
include $(INCLUDE_DIR)/image.mk
|
||||||
include $(INCLUDE_DIR)/kernel.mk
|
|
||||||
|
|
||||||
LOADADDR = 0x81000000 # RAM start + 16M
|
LOADADDR = 0x81000000 # RAM start + 16M
|
||||||
KERNEL_ENTRY = 0x80101000
|
KERNEL_ENTRY = 0x80101000
|
||||||
@ -30,7 +29,7 @@ define Image/Prepare
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/BuildKernel
|
define Image/BuildKernel
|
||||||
$(CP) $(KDIR)/loader.elf $(BIN_DIR)/openwrt-$(BOARD)-vmlinux
|
$(CP) $(KDIR)/loader.elf $(BIN_DIR)/$(IMG_PREFIX)-vmlinux
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/cmdline/jffs2-64k
|
define Image/cmdline/jffs2-64k
|
||||||
@ -54,9 +53,9 @@ root=/dev/mtdblock1 rootfstype=yaffs2
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build
|
define Image/Build
|
||||||
$(CP) $(KDIR)/vmlinux.elf $(BIN_DIR)/openwrt-$(BOARD)-$(1).kernel
|
$(CP) $(KDIR)/vmlinux.elf $(BIN_DIR)/$(IMG_PREFIX)-$(1).kernel
|
||||||
$(STAGING_DIR_HOST)/bin/patch-cmdline $(BIN_DIR)/openwrt-$(BOARD)-$(1).kernel '$(strip $(call Image/cmdline/$(1))) '
|
$(STAGING_DIR_HOST)/bin/patch-cmdline $(BIN_DIR)/$(IMG_PREFIX)-$(1).kernel '$(strip $(call Image/cmdline/$(1))) '
|
||||||
./gen_image.sh $(BIN_DIR)/openwrt-$(BOARD)-$(1).bin 4 $(BIN_DIR)/openwrt-$(BOARD)-$(1).kernel $(CONFIG_TARGET_ROOTFS_FSPART) $(KDIR)/root.$(1)
|
./gen_image.sh $(BIN_DIR)/$(IMG_PREFIX)-$(1).bin 4 $(BIN_DIR)/$(IMG_PREFIX)-$(1).kernel $(CONFIG_TARGET_ROOTFS_FSPART) $(KDIR)/root.$(1)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
|
ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
|
||||||
@ -66,7 +65,7 @@ ifneq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
|
|||||||
$(MAKE) -C $(GENERIC_PLATFORM_DIR)/image/lzma-loader $(LOADER_MAKEOPTS) clean compile
|
$(MAKE) -C $(GENERIC_PLATFORM_DIR)/image/lzma-loader $(LOADER_MAKEOPTS) clean compile
|
||||||
endef
|
endef
|
||||||
define Image/BuildKernel
|
define Image/BuildKernel
|
||||||
$(CP) $(KDIR)/loader.elf $(BIN_DIR)/openwrt-$(BOARD)-vmlinux
|
$(CP) $(KDIR)/loader.elf $(BIN_DIR)/$(IMG_PREFIX)-vmlinux
|
||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2006-2009 OpenWrt.org
|
# Copyright (C) 2006-2010 OpenWrt.org
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
@ -14,8 +14,8 @@ endef
|
|||||||
define Image/Build/ar525w
|
define Image/Build/ar525w
|
||||||
cp $(KDIR)/bzImage $(KDIR)/bzImage.tmp
|
cp $(KDIR)/bzImage $(KDIR)/bzImage.tmp
|
||||||
$(SCRIPT_DIR)/pad_image $(1) $(KDIR)/bzImage.tmp $(KDIR)/root.$(1) 32
|
$(SCRIPT_DIR)/pad_image $(1) $(KDIR)/bzImage.tmp $(KDIR)/root.$(1) 32
|
||||||
$(STAGING_DIR_HOST)/bin/airlink -b 1 $(KDIR)/bzImage.tmp $(KDIR)/root.$(1) $(BIN_DIR)/openwrt-$(BOARD)-$(1)-$(2).img
|
$(STAGING_DIR_HOST)/bin/airlink -b 1 $(KDIR)/bzImage.tmp $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1)-$(2).img
|
||||||
$(STAGING_DIR_HOST)/bin/airlink -e -b 1 $(KDIR)/bzImage.tmp $(KDIR)/root.$(1) $(BIN_DIR)/openwrt-$(BOARD)-$(1)-$(2)-web.img
|
$(STAGING_DIR_HOST)/bin/airlink -e -b 1 $(KDIR)/bzImage.tmp $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1)-$(2)-web.img
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build/sitecom
|
define Image/Build/sitecom
|
||||||
@ -24,21 +24,21 @@ define Image/Build/sitecom
|
|||||||
$(SCRIPT_DIR)/pad_image $(1) $(KDIR)/bzImage.tmp $(KDIR)/root.$(1) 32790
|
$(SCRIPT_DIR)/pad_image $(1) $(KDIR)/bzImage.tmp $(KDIR)/root.$(1) 32790
|
||||||
$(TOPDIR)/target/linux/rdc/image/mkimg_sitecom.pl $(KDIR)/bzImage.tmp > $(KDIR)/tmp.img
|
$(TOPDIR)/target/linux/rdc/image/mkimg_sitecom.pl $(KDIR)/bzImage.tmp > $(KDIR)/tmp.img
|
||||||
cat $(KDIR)/root.$(1) >> $(KDIR)/tmp.img
|
cat $(KDIR)/root.$(1) >> $(KDIR)/tmp.img
|
||||||
cp $(KDIR)/tmp.img $(BIN_DIR)/openwrt-$(BOARD)-$(1)-$(2).img
|
cp $(KDIR)/tmp.img $(BIN_DIR)/$(IMG_PREFIX)-$(1)-$(2).img
|
||||||
rm $(KDIR)/tmp.img $(KDIR)/bzImage.tmp
|
rm $(KDIR)/tmp.img $(KDIR)/bzImage.tmp
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build/bifferboard
|
define Image/Build/bifferboard
|
||||||
$(TOPDIR)/target/linux/rdc/image/mkimg_bifferboard.py $(KDIR)/bzImage $(KDIR)/root.$(1) $(KDIR)/tmp.img
|
$(TOPDIR)/target/linux/rdc/image/mkimg_bifferboard.py $(KDIR)/bzImage $(KDIR)/root.$(1) $(KDIR)/tmp.img
|
||||||
$(CP) $(KDIR)/tmp.img $(BIN_DIR)/openwrt-$(BOARD)-$(1)-$(2).img
|
$(CP) $(KDIR)/tmp.img $(BIN_DIR)/$(IMG_PREFIX)-$(1)-$(2).img
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build/Initramfs
|
define Image/Build/Initramfs
|
||||||
$(CP) $(KDIR)/bzImage $(BIN_DIR)/openwrt-$(BOARD)-ramfs.bzImage
|
$(CP) $(KDIR)/bzImage $(BIN_DIR)/$(IMG_PREFIX)-ramfs.bzImage
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build
|
define Image/Build
|
||||||
$(CP) $(KDIR)/bzImage $(BIN_DIR)/openwrt-$(BOARD).bzImage
|
$(CP) $(KDIR)/bzImage $(BIN_DIR)/$(IMG_PREFIX).bzImage
|
||||||
$(call Image/Build/$(PROFILE),$(1),$(PROFILE),$(patsubst jffs2-%k,%,$(1)))
|
$(call Image/Build/$(PROFILE),$(1),$(PROFILE),$(patsubst jffs2-%k,%,$(1)))
|
||||||
ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
|
ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
|
||||||
$(call Image/Build/Initramfs)
|
$(call Image/Build/Initramfs)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2006 OpenWrt.org
|
# Copyright (C) 2006-2010 OpenWrt.org
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
@ -12,8 +12,8 @@ define Image/Prepare
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build
|
define Image/Build
|
||||||
cp $(KDIR)/root.$(1) $(BIN_DIR)/openwrt-$(BOARD)-$(1).img
|
cp $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1).img
|
||||||
cp $(KDIR)/vmlinux.elf $(BIN_DIR)/openwrt-$(BOARD)-vmlinux
|
cp $(KDIR)/vmlinux.elf $(BIN_DIR)/$(IMG_PREFIX)-vmlinux
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildImage))
|
$(eval $(call BuildImage))
|
||||||
|
@ -71,7 +71,7 @@ ifneq ($(HOST_OS),Darwin)
|
|||||||
-e 's#@TERMINAL_CONFIG@#$(strip $(GRUB_TERMINAL_CONFIG))#g' \
|
-e 's#@TERMINAL_CONFIG@#$(strip $(GRUB_TERMINAL_CONFIG))#g' \
|
||||||
-e 's#@CMDLINE@#$(strip $(call Image/cmdline/$(1)) $(BOOTOPTS) $(GRUB_CONSOLE_CMDLINE))#g' \
|
-e 's#@CMDLINE@#$(strip $(call Image/cmdline/$(1)) $(BOOTOPTS) $(GRUB_CONSOLE_CMDLINE))#g' \
|
||||||
./menu.lst > $(KDIR)/root.grub/boot/grub/menu.lst
|
./menu.lst > $(KDIR)/root.grub/boot/grub/menu.lst
|
||||||
PADDING="$(CONFIG_X86_GRUB_IMAGES_PAD)" PATH="$(TARGET_PATH)" ./gen_image_x86.sh $(BIN_DIR)/openwrt-$(BOARD)-$(1).image $(CONFIG_X86_GRUB_KERNELPART) $(KDIR)/root.grub $(CONFIG_TARGET_ROOTFS_FSPART) $(KDIR)/root.$(1)
|
PADDING="$(CONFIG_X86_GRUB_IMAGES_PAD)" PATH="$(TARGET_PATH)" ./gen_image_x86.sh $(BIN_DIR)/$(IMG_PREFIX)-$(1).image $(CONFIG_X86_GRUB_KERNELPART) $(KDIR)/root.grub $(CONFIG_TARGET_ROOTFS_FSPART) $(KDIR)/root.$(1)
|
||||||
$(call Image/Build/grub/$(1))
|
$(call Image/Build/grub/$(1))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
@ -85,7 +85,7 @@ ifneq ($(HOST_OS),Darwin)
|
|||||||
endef
|
endef
|
||||||
else
|
else
|
||||||
define Image/Build/grub
|
define Image/Build/grub
|
||||||
PADDING="$(CONFIG_X86_GRUB_IMAGES_PAD)" PATH="$(TARGET_PATH)" NOGRUB=1 ./gen_image_x86.sh $(BIN_DIR)/openwrt-$(BOARD)-$(1).image $(CONFIG_X86_GRUB_KERNELPART) "" $(CONFIG_TARGET_ROOTFS_FSPART) $(KDIR)/root.$(1)
|
PADDING="$(CONFIG_X86_GRUB_IMAGES_PAD)" PATH="$(TARGET_PATH)" NOGRUB=1 ./gen_image_x86.sh $(BIN_DIR)/$(IMG_PREFIX)-$(1).image $(CONFIG_X86_GRUB_KERNELPART) "" $(CONFIG_TARGET_ROOTFS_FSPART) $(KDIR)/root.$(1)
|
||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
@ -94,8 +94,8 @@ ifeq ($(CONFIG_X86_VDI_IMAGES),y)
|
|||||||
define Image/Build/vdi
|
define Image/Build/vdi
|
||||||
# left here because the image builder doesnt need these
|
# left here because the image builder doesnt need these
|
||||||
ifeq ($(1),ext2)
|
ifeq ($(1),ext2)
|
||||||
rm $(BIN_DIR)/openwrt-$(BOARD)-ext2.vdi || true
|
rm $(BIN_DIR)/$(IMG_PREFIX)-ext2.vdi || true
|
||||||
VBoxManage convertfromraw -format VDI $(BIN_DIR)/openwrt-$(BOARD)-ext2.image $(BIN_DIR)/openwrt-$(BOARD)-ext2.vdi
|
VBoxManage convertfromraw -format VDI $(BIN_DIR)/$(IMG_PREFIX)-ext2.image $(BIN_DIR)/$(IMG_PREFIX)-ext2.vdi
|
||||||
endif
|
endif
|
||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
@ -104,9 +104,9 @@ ifeq ($(CONFIG_X86_VMDK_IMAGES),y)
|
|||||||
define Image/Build/vmdk
|
define Image/Build/vmdk
|
||||||
# left here because the image builder doesnt need these
|
# left here because the image builder doesnt need these
|
||||||
ifeq ($(1),ext2)
|
ifeq ($(1),ext2)
|
||||||
rm $(BIN_DIR)/openwrt-$(BOARD)-ext2.vmdk || true
|
rm $(BIN_DIR)/$(IMG_PREFIX)-ext2.vmdk || true
|
||||||
qemu-img convert -f raw $(BIN_DIR)/openwrt-$(BOARD)-ext2.image \
|
qemu-img convert -f raw $(BIN_DIR)/$(IMG_PREFIX)-ext2.image \
|
||||||
-O vmdk $(BIN_DIR)/openwrt-$(BOARD)-ext2.vmdk
|
-O vmdk $(BIN_DIR)/$(IMG_PREFIX)-ext2.vmdk
|
||||||
endif
|
endif
|
||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
@ -136,7 +136,7 @@ ifeq ($(CONFIG_OLPC_BOOTSCRIPT_IMAGES),y)
|
|||||||
$(CP) $(KDIR)/bzImage $(KDIR)/root.bootscript/boot/vmlinuz
|
$(CP) $(KDIR)/bzImage $(KDIR)/root.bootscript/boot/vmlinuz
|
||||||
sed -e 's#@CMDLINE@#$(strip $(call Image/cmdline/$(1))) $(BOOTOPTS)#g' \
|
sed -e 's#@CMDLINE@#$(strip $(call Image/cmdline/$(1))) $(BOOTOPTS)#g' \
|
||||||
./olpc.fth > $(KDIR)/root.bootscript/boot/olpc.fth
|
./olpc.fth > $(KDIR)/root.bootscript/boot/olpc.fth
|
||||||
PADDING="$(CONFIG_OLPC_BOOTSCRIPT_IMAGES_PAD)" PATH="$(TARGET_PATH)" ./gen_image_olpc.sh $(BIN_DIR)/openwrt-$(BOARD)-$(1).image $(CONFIG_OLPC_BOOTSCRIPT_KERNELPART) $(KDIR)/root.bootscript $(CONFIG_TARGET_ROOTFS_FSPART) $(KDIR)/root.$(1)
|
PADDING="$(CONFIG_OLPC_BOOTSCRIPT_IMAGES_PAD)" PATH="$(TARGET_PATH)" ./gen_image_olpc.sh $(BIN_DIR)/$(IMG_PREFIX)-$(1).image $(CONFIG_OLPC_BOOTSCRIPT_KERNELPART) $(KDIR)/root.bootscript $(CONFIG_TARGET_ROOTFS_FSPART) $(KDIR)/root.$(1)
|
||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -170,7 +170,7 @@ define Image/Build/iso
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/BuildKernel
|
define Image/BuildKernel
|
||||||
$(CP) $(KDIR)/bzImage $(BIN_DIR)/openwrt-$(BOARD)-vmlinuz
|
$(CP) $(KDIR)/bzImage $(BIN_DIR)/$(IMG_PREFIX)-vmlinuz
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build
|
define Image/Build
|
||||||
@ -181,10 +181,10 @@ define Image/Build
|
|||||||
$(call Image/Build/vdi,$(1))
|
$(call Image/Build/vdi,$(1))
|
||||||
$(call Image/Build/vmdk,$(1))
|
$(call Image/Build/vmdk,$(1))
|
||||||
endif
|
endif
|
||||||
$(CP) $(KDIR)/root.$(1) $(BIN_DIR)/openwrt-$(BOARD)-$(1).fs
|
$(CP) $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1).fs
|
||||||
$(CP) $(KDIR)/bzImage $(BIN_DIR)/openwrt-$(BOARD)-vmlinuz
|
$(CP) $(KDIR)/bzImage $(BIN_DIR)/$(IMG_PREFIX)-vmlinuz
|
||||||
ifeq ($(1),ext2)
|
ifeq ($(1),ext2)
|
||||||
gzip -f9 $(BIN_DIR)/openwrt-$(BOARD)-$(1).image
|
gzip -f9 $(BIN_DIR)/$(IMG_PREFIX)-$(1).image
|
||||||
endif
|
endif
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2009 OpenWrt.org
|
# Copyright (C) 2009-2010 OpenWrt.org
|
||||||
#
|
#
|
||||||
# This is free software, licensed under the GNU General Public License v2.
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
# See /LICENSE for more information.
|
# See /LICENSE for more information.
|
||||||
@ -18,7 +18,7 @@ UBINIZE_OPTS = -m 2048 -p 128KiB -s 512
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
define Image/BuildKernel
|
define Image/BuildKernel
|
||||||
cp $(KDIR)/linux-$(LINUX_VERSION)/arch/mips/boot/uImage $(BIN_DIR)/openwrt-$(BOARD)-uImage.bin
|
cp $(LINUX_DIR)/arch/mips/boot/uImage $(BIN_DIR)/$(IMG_PREFIX)-uImage.bin
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build/squashfs
|
define Image/Build/squashfs
|
||||||
@ -26,7 +26,7 @@ define Image/Build/squashfs
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Image/Build
|
define Image/Build
|
||||||
dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/openwrt-$(BOARD)-$(SUBTARGET)-root.$(1) bs=128k conv=sync
|
dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/$(IMG_PREFIX)-root.$(1) bs=128k conv=sync
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildImage))
|
$(eval $(call BuildImage))
|
||||||
|
Loading…
Reference in New Issue
Block a user