akaros/Makelocal.template
<<
>>
Prefs
   1# Userspace configuration parameters
   2#CFLAGS_USER += -DCONFIG_APPSERVER
   3#CFLAGS_USER += -DCONFIG_SYSCALL_TRAP
   4#CFLAGS_USER += -g
   5# Turn this on for better backtraces, but worse performance
   6#CFLAGS_USER += -fno-optimize-sibling-calls
   7#CFLAGS_TESTS += -static
   8#CFLAGS_TESTS += -fno-optimize-sibling-calls
   9export CFLAGS_USER CFLAGS_TESTS
  10
  11# For building linux modules, used by some tests on linux, set LINUX_KDIR
  12#LINUX_KDIR := /path/to/linux/source
  13export LINUX_KDIR
  14# You can change the CC too, used for Linux apps and modules.
  15# (and Kbuild, a little).  Default is just gcc.
  16#HOSTCC := gcc-8
  17
  18# The default is num_cpus.  Use whatever you want.
  19# MAKE_JOBS := 100
  20
  21# brho's custom targets.  Customize to your system.
  22#$(OBJDIR)/kern/.kvm.touch: $(CMP_KERNEL_OBJ)
  23#       @echo "  (KVM) Copying to mnt/hdd"
  24#       $(Q)cp $^ mnt/hdd/kernel
  25#       @sync
  26#       @touch $@
  27#
  28#kvm: $(OBJDIR)/kern/.kvm.touch ;
  29#
  30#$(OBJDIR)/kern/.usb.touch: $(CMP_KERNEL_OBJ)
  31#       @echo "  (USB) Copying to /dev/sdc4"
  32#       $(Q)mount /dev/sdc4
  33#       $(Q)cp $^ /mnt/usbstick/boot/akaros
  34#       @sync
  35#       $(Q)umount /mnt/usbstick
  36#       @touch $@
  37#
  38#usb: $(OBJDIR)/kern/.usb.touch ;
  39#
  40#$(OBJDIR)/kern/.pxe.touch: $(CMP_KERNEL_OBJ)
  41#       @echo "  (PXE) Copying to Watson"
  42#       $(Q)scp $^ watson.millennium.berkeley.edu:/tftpboot/akaros/akaros-kernel.gz
  43#       @touch $@
  44#
  45#pxe: $(OBJDIR)/kern/.pxe.touch ;
  46
  47# risc-v functional simulator
  48rvfs: all
  49        fesvr -p$(NP) -nopk $(KERNEL_OBJ)
  50rvfsd: all
  51        fesvr -d -p$(NP) -nopk $(KERNEL_OBJ)
  52
  53PHONY += fs fsd hw rvfs rvfsd
  54