The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/conf/Makefile.riscv

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 # Makefile.riscv -- with config changes.
    2 # Copyright 1990 W. Jolitz
    3 #       from: @(#)Makefile.i386 7.1 5/10/91
    4 #       from FreeBSD: src/sys/conf/Makefile.i386,v 1.255 2002/02/20 23:35:49
    5 # $FreeBSD$
    6 #
    7 # Makefile for FreeBSD
    8 #
    9 # RISCVTODO: copy pasted from aarch64, needs to be
   10 # constructed from a machine description:
   11 #       config machineid
   12 # Most changes should be made in the machine description
   13 #       /sys/riscv/conf/``machineid''
   14 # after which you should do
   15 #        config machineid
   16 # Generic makefile changes should be made in
   17 #       /sys/conf/Makefile.riscv
   18 # after which config should be rerun for all machines.
   19 #
   20 
   21 # Which version of config(8) is required.
   22 %VERSREQ=       600012
   23 
   24 .if !defined(S)
   25 S=      ../../..
   26 .endif
   27 .include "$S/conf/kern.pre.mk"
   28 
   29 INCLUDES+= -I$S/contrib/libfdt -I$S/contrib/device-tree/include
   30 
   31 # Set the ELF LMA to the address that OpenSBI's fw_jump jumps to. This allows
   32 # us to load the kernel with the -kernel flag in QEMU without having to embed
   33 # it inside BBL or OpenSBI's fw_payload first.
   34 # Note: For rv32 the start address is different (0x80400000).
   35 # We set this value using --defsym rather than hardcoding it in ldscript.riscv
   36 # so that different kernel configs can override the load address.
   37 KERNEL_LMA?=    0x80200000
   38 LDFLAGS+= --defsym='kernel_lma=${KERNEL_LMA}'
   39 
   40 .if !empty(DDB_ENABLED) || !empty(DTRACE_ENABLED) || !empty(HWPMC_ENABLED)
   41 CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls
   42 .endif
   43 
   44 # hack because genassym.c includes sys/bus.h which includes these.
   45 genassym.o: bus_if.h device_if.h
   46 
   47 %BEFORE_DEPEND
   48 
   49 %OBJS
   50 
   51 %FILES.c
   52 
   53 %FILES.s
   54 
   55 %FILES.m
   56 
   57 %CLEAN
   58 
   59 %RULES
   60 
   61 .include "$S/conf/kern.post.mk"

Cache object: c8e35da786790bc335abdccd053e1a78


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.