OSDN Git Service

2013.10.24
[uclinux-h8/uClinux-dist.git] / vendors / CyberGuard / SG580 / Makefile
1 #
2 #       Makefile -- Build instructions for CyberGuard/SG580
3 #
4
5 ROMFSIMG  = $(IMAGEDIR)/ramdisk
6 ZIMAGE    = $(IMAGEDIR)/zImage
7 IMAGE     = $(IMAGEDIR)/image.bin
8 FLASH     = $(IMAGEDIR)/flash.bin
9
10 SQUASH_ENDIAN = -be
11
12 ROMFS_DIRS = $(DEFAULT_ROMFS_DIRS)
13
14 DEVICES += $(DEVICE_PTY_64)
15
16 all:
17
18 clean: image.clean
19
20 romfs: romfs_dev romfs.dirs romfs.symlinks romfs.default romfs.rc romfs.version
21         $(ROMFSINST) ../network.init.std /etc/network.init
22         $(ROMFSINST) ../firewall.init.std /etc/firewall.init
23
24 romfs.post:: romfs.no-ixp400-modules 
25
26 image: image.configs image.dir image.arm.zimage image.squashfs7z image.bin image.tag image.copy image.flash
27
28 #
29 # build up a flash.bin
30 #
31 vendor_flashbin:
32         @$(DD) conv=sync if=$(ROOTDIR)/boot/boot.bin of=$(FLASH) bs=256k 
33         @cat $(IMAGE) >> $(FLASH)
34         @echo "Factory `basename $(FLASH)` created."
35         [ -n "$(NO_BUILD_INTO_TFTPBOOT)" ] || cp $(FLASH) /tftpboot/.
36
37 include $(ROOTDIR)/vendors/config/config.dev
38 include ../vendor.mak