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-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-2  -  FREEBSD-11-1  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-4  -  FREEBSD-10-3  -  FREEBSD-10-2  -  FREEBSD-10-1  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-3  -  FREEBSD-9-2  -  FREEBSD-9-1  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-4  -  FREEBSD-8-3  -  FREEBSD-8-2  -  FREEBSD-8-1  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-4  -  FREEBSD-7-3  -  FREEBSD-7-2  -  FREEBSD-7-1  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-4  -  FREEBSD-6-3  -  FREEBSD-6-2  -  FREEBSD-6-1  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-5  -  FREEBSD-5-4  -  FREEBSD-5-3  -  FREEBSD-5-2  -  FREEBSD-5-1  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  linux-2.6  -  linux-2.4.22  -  MK83  -  MK84  -  PLAN9  -  DFBSD  -  NETBSD  -  NETBSD5  -  NETBSD4  -  NETBSD3  -  NETBSD20  -  OPENBSD  -  xnu-517  -  xnu-792  -  xnu-792.6.70  -  xnu-1228  -  xnu-1456.1.26  -  xnu-1699.24.8  -  xnu-2050.18.24  -  OPENSOLARIS  -  minix-3-1-1 
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=       600004
   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 SYSTEM_LD:= ${SYSTEM_LD:$S/conf/ldscript.$M=ldscript.$M}
   34 SYSTEM_DEP:= ${SYSTEM_DEP:$S/conf/ldscript.$M=ldscript.$M}
   35 
   36 .if defined(ARM_BIG_ENDIAN)
   37 CC += -mbig-endian
   38 SYSTEM_LD += -EB
   39 LD += -EB
   40 .endif
   41 
   42 
   43 .if !defined(DEBUG) && !defined(PROFLEVEL)
   44 STRIP_FLAGS = -S
   45 .endif
   46 
   47 DDB_ENABLED!=   grep DDB opt_ddb.h || true
   48 
   49 .if empty(DDB_ENABLED)
   50 CFLAGS += -mno-apcs-frame
   51 .endif
   52 
   53 SYSTEM_LD_ = ${LD} -Bdynamic -T ldscript.$M.noheader \
   54           -warn-common -export-dynamic -dynamic-linker /red/herring -o \
   55            ${FULLKERNEL}.noheader -X ${SYSTEM_OBJS} vers.o
   56 SYSTEM_LD_TAIL +=;sed s/" + SIZEOF_HEADERS"// ldscript.$M\
   57                 >ldscript.$M.noheader; \
   58                 ${SYSTEM_LD_}; \
   59                 ${OBJCOPY} -S -O binary ${FULLKERNEL}.noheader \
   60                 ${KERNEL_KO}.bin; \
   61                 rm ${FULLKERNEL}.noheader
   62 
   63 FILES_CPU_FUNC =        $S/$M/$M/cpufunc_asm_arm7tdmi.S \
   64         $S/$M/$M/cpufunc_asm_arm8.S $S/$M/$M/cpufunc_asm_arm9.S \
   65         $S/$M/$M/cpufunc_asm_sa1.S $S/$M/$M/cpufunc_asm_arm10.S \
   66         $S/$M/$M/cpufunc_asm_xscale.S $S/$M/$M/cpufunc_asm.S \
   67         $S/$M/$M/cpufunc_asm_xscale_c3.S $S/$M/$M/cpufunc_asm_armv5_ec.S
   68 trampoline: ${KERNEL_KO}.tramp
   69 ${KERNEL_KO}.tramp: ${KERNEL_KO} $S/$M/$M/inckern.S $S/$M/$M/elf_trampoline.c
   70         echo "#define KERNNAME \"${KERNEL_KO}.tmp\"" >opt_kernname.h 
   71         sed s/${KERNVIRTADDR}/${KERNPHYSADDR}/ ldscript.$M > ldscript.$M.tramp
   72         sed s/" + SIZEOF_HEADERS"// ldscript.$M.tramp > \
   73         ldscript.$M.tramp.noheader
   74         echo "#include <machine/asm.h>" >tmphack.S
   75         echo "ENTRY(_start)" >>tmphack.S
   76         echo "bl _startC" >>tmphack.S
   77         ${OBJCOPY} --strip-symbol '$$d' --strip-symbol '$$a' \
   78         -g --strip-symbol '$$t' ${FULLKERNEL} ${KERNEL_KO}.tmp
   79         eval $$(stat -s ${KERNEL_KO}.tmp) && \
   80         echo "#define KERNSIZE $$st_size" >>opt_kernname.h
   81         ${CC} -O -nostdlib -I. -Xlinker -T -Xlinker ldscript.$M.tramp \
   82         tmphack.S $S/$M/$M/elf_trampoline.c $S/$M/$M/inckern.S \
   83         ${FILES_CPU_FUNC} -o ${KERNEL_KO}.tramp
   84         ${CC} -O -nostdlib -I. -Xlinker -T -Xlinker ldscript.$M.tramp.noheader \
   85         tmphack.S $S/$M/$M/elf_trampoline.c $S/$M/$M/inckern.S \
   86         ${FILES_CPU_FUNC} -o ${KERNEL_KO}.tramp.noheader 
   87         ${OBJCOPY} -S -O binary ${KERNEL_KO}.tramp.noheader \
   88         ${KERNEL_KO}.tramp.bin 
   89         ${OBJCOPY} ${STRIP_FLAGS} ${KERNEL_KO}.tmp 
   90         echo "#define KERNNAME \"${KERNEL_KO}.tmp.gz\"" \
   91         >opt_kernname.h 
   92         eval $$(stat -s ${KERNEL_KO}.tmp) && \
   93         echo "#define KERNSIZE $$st_size" >>opt_kernname.h
   94         gzip -9 ${KERNEL_KO}.tmp
   95         eval $$(stat -s ${KERNEL_KO}.tmp.gz) && \
   96         echo "#define KERNCOMPSIZE $$st_size" >>opt_kernname.h
   97         ${CC} -O2 -DKZIP -I. -c $S/kern/inflate.c -o inflate-tramp.o
   98         ${CC} -O -nostdlib -I. -Xlinker -T -Xlinker ldscript.$M.tramp \
   99         -DKZIP tmphack.S $S/$M/$M/elf_trampoline.c inflate-tramp.o \
  100         $S/$M/$M/inckern.S ${FILES_CPU_FUNC} -o ${KERNEL_KO}.gz.tramp
  101         ${CC} -O -nostdlib -I. -Xlinker -T -Xlinker ldscript.$M.tramp.noheader \
  102         -DKZIP tmphack.S $S/$M/$M/elf_trampoline.c inflate-tramp.o \
  103         $S/$M/$M/inckern.S ${FILES_CPU_FUNC} -o ${KERNEL_KO}.tramp.noheader
  104         ${OBJCOPY} -S -O binary ${KERNEL_KO}.tramp.noheader \
  105         ${KERNEL_KO}.gz.tramp.bin
  106         rm ${KERNEL_KO}.tmp.gz ${KERNEL_KO}.tramp.noheader opt_kernname.h \
  107         inflate-tramp.o tmphack.S
  108 
  109 MKMODULESENV+=  MACHINE=${MACHINE}
  110 
  111 %BEFORE_DEPEND
  112 
  113 %OBJS
  114 
  115 %FILES.c
  116 
  117 %FILES.s
  118 
  119 %FILES.m
  120 
  121 %CLEAN
  122 
  123 CLEAN+= ldscript.$M ${KERNEL_KO}.bin ldscript.$M.noheader
  124 
  125 .if ${DDB_ENABLED} != ""
  126 CLEAN+= ${KERNEL_KO}.tramp ${KERNEL_KO}.tramp.bin ldscript.$M.tramp \
  127         ldscript.$M.tramp.noheader ${KERNEL_KO}.gz.tramp \
  128         ${KERNEL_KO}.gz.tramp.bin
  129 
  130 .endif
  131 ldscript.$M: $S/conf/ldscript.$M
  132         cat $S/conf/ldscript.$M|sed s/KERNPHYSADDR/${KERNPHYSADDR}/g| \
  133           sed s/KERNVIRTADDR/${KERNVIRTADDR}/g > ldscript.$M
  134 %RULES
  135         
  136 .include "$S/conf/kern.post.mk"

Cache object: 4f7235fd59be6ac6858fa0fa05023966


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