Files
docs
feeds
include
opensource
package
prebuilt
qca
scripts
target
imagebuilder
linux
adm5120
adm8668
amazon
ar7
ar71xx
at91
atheros
au1000
avr32
brcm2708
brcm47xx
brcm63xx
cns21xx
cns3xxx
cobalt
coldfire
ep93xx
etrax
gemini
generic
goldfish
imx21
iop32x
ipq806x
ixp4xx
kirkwood
lantiq
leon
malta
mcs814x
mpc52xx
mpc83xx
mpc85xx
octeon
omap24xx
omap35xx
omap4
orion
ppc40x
ppc44x
ps3
pxa
pxcab
ramips
rb532
rdc
base-files
image
Makefile
mkimg_bifferboard.py
mkimg_sitecom.pl
patches-3.3
profiles
Makefile
config-3.3
modules.mk
realview
s3c24xx
sibyte
sparc
ubicom32
uml
x86
xburst
Makefile
sdk
toolchain
Config.in
Makefile
toolchain
tools
.config
.config.old
BSDmakefile
Config.in
LICENSE
Makefile
README
feeds.conf
feeds.conf.default
rules.mk
48 lines
1.6 KiB
Makefile
48 lines
1.6 KiB
Makefile
#
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
include $(TOPDIR)/rules.mk
|
|
include $(INCLUDE_DIR)/image.mk
|
|
|
|
define Image/Prepare
|
|
$(CP) $(LINUX_DIR)/arch/x86/boot/bzImage $(KDIR)/bzImage
|
|
endef
|
|
|
|
define Image/Build/ar525w
|
|
cp $(KDIR)/bzImage $(KDIR)/bzImage.tmp
|
|
$(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)/$(IMG_PREFIX)-$(1)-$(2).img
|
|
$(STAGING_DIR_HOST)/bin/airlink -e -b 1 $(KDIR)/bzImage.tmp $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1)-$(2)-web.img
|
|
endef
|
|
|
|
define Image/Build/sitecom
|
|
cp $(KDIR)/bzImage $(KDIR)/bzImage.tmp
|
|
#32k config data + 20 bytes header + 2 bytes checksum after kernel image
|
|
$(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
|
|
cat $(KDIR)/root.$(1) >> $(KDIR)/tmp.img
|
|
cp $(KDIR)/tmp.img $(BIN_DIR)/$(IMG_PREFIX)-$(1)-$(2).img
|
|
rm $(KDIR)/tmp.img $(KDIR)/bzImage.tmp
|
|
endef
|
|
|
|
define Image/Build/bifferboard
|
|
$(TOPDIR)/target/linux/rdc/image/mkimg_bifferboard.py $(KDIR)/bzImage $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_PREFIX)-$(1)-$(2).img
|
|
endef
|
|
|
|
define Image/Build/Initramfs
|
|
$(CP) $(KDIR)/bzImage $(BIN_DIR)/$(IMG_PREFIX)-ramfs.bzImage
|
|
endef
|
|
|
|
define Image/Build
|
|
$(CP) $(KDIR)/bzImage $(BIN_DIR)/$(IMG_PREFIX).bzImage
|
|
$(call Image/Build/$(PROFILE),$(1),$(PROFILE),$(patsubst jffs2-%k,%,$(1)))
|
|
ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
|
|
$(call Image/Build/Initramfs)
|
|
endif
|
|
endef
|
|
|
|
$(eval $(call BuildImage))
|