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.arm

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.arm -- with config changes.
    2 # Copyright 1990 W. Jolitz
    3 #       from: @(#)Makefile.i386 7.1 5/10/91
    4 # $FreeBSD$
    5 #
    6 # Makefile for FreeBSD
    7 #
    8 # This makefile is constructed from a machine description:
    9 #       config machineid
   10 # Most changes should be made in the machine description
   11 #       /sys/arm/conf/``machineid''
   12 # after which you should do
   13 #        config machineid
   14 # Generic makefile changes should be made in
   15 #       /sys/conf/Makefile.arm
   16 # after which config should be rerun for all machines.
   17 #
   18 
   19 # Which version of config(8) is required.
   20 %VERSREQ=       600013
   21 
   22 STD8X16FONT?=   iso
   23 
   24 .if !defined(S)
   25 .if exists(./@/.)
   26 S=      ./@
   27 .else
   28 S=      ../../..
   29 .endif
   30 .endif
   31 .include "$S/conf/kern.pre.mk"
   32 
   33 INCLUDES+= -I$S/contrib/libfdt -I$S/contrib/device-tree/include -I$$/dts/include
   34 
   35 LINUX_DTS_VERSION!=     awk '/freebsd,dts-version/ { sub(/;$$/,"", $$NF); print $$NF }' $S/dts/freebsd-compatible.dts
   36 CFLAGS += -DLINUX_DTS_VERSION=\"${LINUX_DTS_VERSION}\"
   37 
   38 .if !defined(DEBUG)
   39 STRIP_FLAGS = -S
   40 .endif
   41 
   42 # We don't support gcc's thump interwork stuff, so disable it
   43 CFLAGS.gcc += -mno-thumb-interwork
   44 
   45 # We generally don't want fpu instructions in the kernel.
   46 CFLAGS.clang += -mfpu=none
   47 
   48 .if !empty(DDB_ENABLED)
   49 CFLAGS += -funwind-tables
   50 .endif
   51 
   52 # "makeoptions KERNVIRTADDR=" is now optional, supply the default value.
   53 .if empty(KERNVIRTADDR)
   54 KERNVIRTADDR= 0xc0000000
   55 .endif
   56 
   57 # Use a custom SYSTEM_LD command to generate the elf kernel, so we can
   58 # set the text segment start address, and also strip the "arm mapping
   59 # symbols" which have names like $a.0 and $d.2; see the document
   60 # "ELF for the ARM architecture" for more info on the mapping symbols.
   61 SYSTEM_LD= \
   62         ${SYSTEM_LD_BASECMD} \
   63             --defsym='text_start=kernbase + SIZEOF_HEADERS' \
   64             -o ${.TARGET} ${SYSTEM_OBJS} vers.o; \
   65         $(OBJCOPY) \
   66             --wildcard \
   67             --strip-symbol='$$[adt]*' \
   68             ${.TARGET}
   69 
   70 # Generate the .bin (no elf headers) kernel as an extra build output.
   71 # We must relink to generate the .bin kernel, because without headers the
   72 # location of everything changes.  We also strip the ARM marker symbols.
   73 KERNEL_EXTRA+= ${KERNEL_KO}.bin
   74 KERNEL_EXTRA_INSTALL+= ${KERNEL_KO}.bin
   75 
   76 ${KERNEL_KO}.bin: ${SYSTEM_DEP} vers.o
   77         @echo "linking ${.TARGET}"
   78         @${SYSTEM_LD_BASECMD} \
   79             --defsym='text_start=kernbase' \
   80             -o ${.TARGET} ${SYSTEM_OBJS} vers.o
   81         ${SIZE} ${.TARGET}
   82         @${OBJCOPY} \
   83             --wildcard \
   84             --strip-symbol='$$[adt]*' \
   85             --output-target=binary \
   86             ${.TARGET}
   87         @chmod 755 ${.TARGET}
   88 
   89 # hack because genassym.c includes sys/bus.h which includes these.
   90 genassym.o: bus_if.h device_if.h
   91 
   92 %BEFORE_DEPEND
   93 
   94 %OBJS
   95 
   96 %FILES.c
   97 
   98 %FILES.s
   99 
  100 %FILES.m
  101 
  102 %CLEAN
  103 
  104 CLEAN+= ${KERNEL_KO}.bin
  105 
  106 %RULES
  107         
  108 .include "$S/conf/kern.post.mk"

Cache object: 5926887d80dc7b180ee303ae29f18224


[ 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.