|
|
1.1 root 1: # *****************************************************************************
2: # * Copyright (c) 2004, 2011 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:
1.1.1.3 ! root 15: SUBDIRS = slof veth virtio-net
! 16:
! 17: COMMON_LIBS = libc libbootmsg libbases libnvram libelf libhvcall libvirtio
1.1 root 18:
1.1.1.2 root 19: all: $(BOARD_TARGETS)
20: $(MAKE) boot_rom.bin
1.1 root 21:
22: .PHONY : subdirs $(SUBDIRS) clean distclean
23:
24: include config
25: include Makefile.dirs
26: include $(TOPCMNDIR)/make.rules
27: include $(TOPCMNDIR)/Makefile.gen
28:
29: subdirs: $(SUBDIRS)
30:
31: $(SUBDIRS): common-libs
1.1.1.2 root 32: @echo " ====== Building $@ ======"
33: $(MAKE) -C $@ $(MAKEARG)
1.1 root 34:
35: stage1: common-libs
1.1.1.2 root 36: @echo " ====== Building llfw ======"
37: $(MAKE) -C llfw RELEASE=-DRELEASE=\"\\\"$(RELEASE)\\\"\"
1.1 root 38:
1.1.1.3 ! root 39: netdrivers: common-libs
! 40: $(MAKE) -C ../drivers/e1k
! 41:
1.1 root 42: clean_here:
1.1.1.2 root 43: rm -f ../slof/OF.ffs
44: rm -f ../boot_rom.bin
1.1 root 45:
1.1.1.2 root 46: clean: clean_here clean_gen
47: @for dir in $(SUBDIRS); do \
48: $(MAKE) -C $$dir clean || exit 1; \
49: done
50: rm -f ../boot_rom.bin
51: @$(MAKE) -C llfw 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
58: $(MAKE) -C llfw clean
1.1 root 59:
60: .driver_dirs:
1.1.1.2 root 61: @rm -rf ../driver-$(RELEASE)
62: @mkdir -p ../driver-$(RELEASE)
1.1 root 63:
64: .tar_gz: .driver_dirs
1.1.1.2 root 65: @mv ../boot_rom.bin ../driver-$(RELEASE)/$(RELEASE)-slof.bin
66: @cp ../VERSION ../driver-$(RELEASE)
67: @cp changes.txt ../driver-$(RELEASE)
68: @cd ../driver-$(RELEASE) && md5sum * > md5sum.txt
69: @chmod 644 ../driver-$(RELEASE)/*
70: @mv ../driver-$(RELEASE) ../driver-$(RELEASE)-`date +%Y-%h%d`
71: @tar czf ../driver-$(RELEASE)-`date +%Y-%h%d`.tar.gz \
72: ../driver-$(RELEASE)-`date +%Y-%h%d` > /dev/null 2>&1
73: @rm -rf ../driver-$(RELEASE)-`date +%Y-%h%d`
1.1 root 74:
75: 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.