-
Notifications
You must be signed in to change notification settings - Fork 61
/
Copy pathMakelocal.template
53 lines (48 loc) · 1.44 KB
/
Makelocal.template
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
# Userspace configuration parameters
#CFLAGS_USER += -DCONFIG_APPSERVER
#CFLAGS_USER += -DCONFIG_SYSCALL_TRAP
#CFLAGS_USER += -g
# Turn this on for better backtraces, but worse performance
#CFLAGS_USER += -fno-optimize-sibling-calls
#CFLAGS_TESTS += -static
#CFLAGS_TESTS += -fno-optimize-sibling-calls
export CFLAGS_USER CFLAGS_TESTS
# For building linux modules, used by some tests on linux, set LINUX_KDIR
#LINUX_KDIR := /path/to/linux/source
export LINUX_KDIR
# You can change the CC too, used for Linux apps and modules.
# (and Kbuild, a little). Default is just gcc.
#HOSTCC := gcc-8
# The default is num_cpus. Use whatever you want.
# MAKE_JOBS := 100
# brho's custom targets. Customize to your system.
#$(OBJDIR)/kern/.kvm.touch: $(CMP_KERNEL_OBJ)
# @echo " (KVM) Copying to mnt/hdd"
# $(Q)cp $^ mnt/hdd/kernel
# @sync
# @touch $@
#
#kvm: $(OBJDIR)/kern/.kvm.touch ;
#
#$(OBJDIR)/kern/.usb.touch: $(CMP_KERNEL_OBJ)
# @echo " (USB) Copying to /dev/sdc4"
# $(Q)mount /dev/sdc4
# $(Q)cp $^ /mnt/usbstick/boot/akaros
# @sync
# $(Q)umount /mnt/usbstick
# @touch $@
#
#usb: $(OBJDIR)/kern/.usb.touch ;
#
#$(OBJDIR)/kern/.pxe.touch: $(CMP_KERNEL_OBJ)
# @echo " (PXE) Copying to Watson"
# $(Q)scp $^ watson.millennium.berkeley.edu:/tftpboot/akaros/akaros-kernel.gz
# @touch $@
#
#pxe: $(OBJDIR)/kern/.pxe.touch ;
# risc-v functional simulator
rvfs: all
fesvr -p$(NP) -nopk $(KERNEL_OBJ)
rvfsd: all
fesvr -d -p$(NP) -nopk $(KERNEL_OBJ)
PHONY += fs fsd hw rvfs rvfsd