blob: 29ee016adb3da13e843ee4e7b6524d1e7e4ba824 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# *****************************************************************************
# * Copyright (c) 2004, 2011 IBM Corporation
# * All rights reserved.
# * This program and the accompanying materials
# * are made available under the terms of the BSD License
# * which accompanies this distribution, and is available at
# * http://www.opensource.org/licenses/bsd-license.php
# *
# * Contributors:
# * IBM Corporation - initial implementation
# ****************************************************************************/
BOARD_TARGETS = tools_build romfs_build clients_build stage1 subdirs
SUBDIRS = slof
COMMON_LIBS = libc libbootmsg libbases libnvram libelf libhvcall libvirtio libusb \
libveth libe1k
all: $(BOARD_TARGETS)
$(MAKE) boot_rom.bin
.PHONY : subdirs $(SUBDIRS) clean distclean
include config
include Makefile.dirs
include $(TOPCMNDIR)/make.rules
include $(TOPCMNDIR)/Makefile.gen
subdirs: $(SUBDIRS)
$(SUBDIRS): common-libs
@echo " ====== Building $@ ======"
$(MAKE) -C $@ $(MAKEARG) RELEASE=-DRELEASE=\"\\\"$(RELEASE)\\\"\"
stage1: common-libs
@echo " ====== Building llfw ======"
$(MAKE) -C llfw RELEASE=-DRELEASE=\"\\\"$(RELEASE)\\\"\"
clean_here:
rm -f ../slof/OF.ffs
rm -f ../boot_rom.bin
clean: clean_here clean_gen
@for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir clean || exit 1; \
done
rm -f ../boot_rom.bin
@$(MAKE) -C llfw clean
distclean: clean_here distclean_gen
@for dir in $(SUBDIRS); do \
$(MAKE) -C $$dir distclean || exit 1; \
done
rm -f ../boot_rom.bin
$(MAKE) -C llfw clean
.driver_dirs:
@rm -rf ../driver-$(RELEASE)
@mkdir -p ../driver-$(RELEASE)
.tar_gz: .driver_dirs
@mv ../boot_rom.bin ../driver-$(RELEASE)/$(RELEASE)-slof.bin
@cp ../VERSION ../driver-$(RELEASE)
@cp changes.txt ../driver-$(RELEASE)
@cd ../driver-$(RELEASE) && md5sum * > md5sum.txt
@chmod 644 ../driver-$(RELEASE)/*
@mv ../driver-$(RELEASE) ../driver-$(RELEASE)-`date +%Y-%h%d`
@tar czf ../driver-$(RELEASE)-`date +%Y-%h%d`.tar.gz \
../driver-$(RELEASE)-`date +%Y-%h%d` > /dev/null 2>&1
@rm -rf ../driver-$(RELEASE)-`date +%Y-%h%d`
driver: driver_prep clean .tar_gz
|