|
|
1.1 root 1: # *****************************************************************************
2: # * Copyright (c) 2004, 2008 IBM Corporation
3: # * All rights reserved.
4: # * This program and the accompanying materials
5: # * are made available under the terms of the BSD License
6: # * which accompanies this distribution, and is available at
7: # * http://www.opensource.org/licenses/bsd-license.php
8: # *
9: # * Contributors:
10: # * IBM Corporation - initial implementation
11: # ****************************************************************************/
12:
1.1.1.3 ! root 13: BOARD_TARGETS = tools_build romfs_build clients_build netdrivers stage1 subdirs
1.1 root 14:
15: SUBDIRS = slof rtas
16: COMMON_LIBS = libc libipmi libbootmsg libbases libnvram libelf
17:
1.1.1.2 root 18: all: $(BOARD_TARGETS)
19: $(MAKE) boot_rom.bin
1.1 root 20:
21: .PHONY : subdirs $(SUBDIRS) clean distclean
22:
23: include config
24: include Makefile.dirs
25: include $(TOPCMNDIR)/make.rules
26: include $(TOPCMNDIR)/Makefile.gen
27:
28: subdirs: $(SUBDIRS)
29:
30: $(SUBDIRS): common-libs
1.1.1.2 root 31: @echo " ====== Building $@ ======"
32: $(MAKE) -C $@ $(MAKEARG)
1.1 root 33:
34: stage1: common-libs
1.1.1.2 root 35: @echo " ====== Building llfw ======"
36: $(MAKE) -C llfw RELEASE=-DRELEASE=\"\\\"$(RELEASE)\\\"\"
1.1 root 37:
1.1.1.3 ! root 38: netdrivers: common-libs
! 39: $(MAKE) -C ../drivers
1.1 root 40:
41: clean_here:
1.1.1.2 root 42: rm -f ../slof/OF.ffs
43: rm -f ../boot_rom.bin
1.1 root 44:
45: clean: clean_here clean_gen
1.1.1.2 root 46: @for dir in $(SUBDIRS); do \
47: $(MAKE) -C $$dir clean || exit 1; \
48: done
49: rm -f ../boot_rom.bin ../js2*.img
50: @$(MAKE) -C llfw clean
51: @$(MAKE) -C $(TOPCMNDIR)/clients/takeover clean
1.1 root 52:
53: distclean: clean_here distclean_gen
1.1.1.2 root 54: @for dir in $(SUBDIRS); do \
55: $(MAKE) -C $$dir distclean || exit 1; \
56: done
57: rm -f ../boot_rom.bin ../js2*.img
58: $(MAKE) -C llfw clean
59: $(MAKE) -C $(TOPCMNDIR)/clients/takeover distclean
1.1 root 60:
61: takeover: all
1.1.1.2 root 62: $(MAKE) -C $(TOPCMNDIR)/clients/takeover
1.1 root 63:
64: .driver_dirs:
1.1.1.2 root 65: @rm -rf ../driver-$(RELEASE)
66: @mkdir -p ../driver-$(RELEASE)
1.1 root 67:
68: .tar_gz: .driver_dirs takeover external_flasher
1.1.1.2 root 69: @mv ../boot_rom.bin \
70: ../driver-$(RELEASE)/$(RELEASE)-js2x.bin
71: @mv ../boot_rom-$(FLASH_SIZE_MB)MB-BigEndian.bin \
72: ../driver-$(RELEASE)/$(RELEASE)-$(FLASH_SIZE_MB)MB-BigEndian.bin
73: @mv $(TOPCMNDIR)/clients/takeover/takeover.elf \
74: ../driver-$(RELEASE)/$(RELEASE)-takeover.bin
75: @cp ../VERSION ../driver-$(RELEASE)
76: @cp changes.txt ../driver-$(RELEASE)
77: @cd ../driver-$(RELEASE) && md5sum * > md5sum.txt
78: @chmod 644 ../driver-$(RELEASE)/*
79: @mv ../driver-$(RELEASE) ../driver-$(RELEASE)-`date +%Y-%h%d`
80: @tar czf ../driver-$(RELEASE)-`date +%Y-%h%d`.tar.gz \
81: ../driver-$(RELEASE)-`date +%Y-%h%d` > /dev/null 2>&1
82: @rm -rf ../driver-$(RELEASE)-`date +%Y-%h%d`
1.1 root 83:
84: driver: driver_prep clean .tar_gz
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.