Ignore:
Timestamp:
Jul 13, 2010, 5:58:35 AM (9 years ago)
Author:
gb
Message:

Get the kernel to compile/link/run enough to complain about a missing
image on ios.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/arm/lisp-kernel/darwinarm/Makefile

    r13923 r13958  
    1919AS = /Developer/Platforms/iPhoneOS.platform/Developer/usr/libexec/gcc/darwin/arm/as
    2020M4 = m4
    21 ASFLAGS = -arch arm -force_cpusubtype_ALL
     21ASFLAGS = -arch armv6
    2222M4FLAGS = -DDARWIN -DARM
    23 CDEFINES = -DDARWIN -DARM -D_REENTRANT -D_GNU_SOURCE -DDISABLE_EGC -DGC_INTEGRITY_CHECKING
     23CC = /Developer/Platforms/iPhoneOS.platform/usr/bin/llvm-gcc-4.2
     24CDEFINES = -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk/ -DDARWIN -DARM -D_REENTRANT -D_GNU_SOURCE -DDISABLE_EGC -DGC_INTEGRITY_CHECKING -arch armv6
    2425CDEBUG = -g
    2526COPT = #-O2
     
    2930PLATFORM_H = platform-darwinarm.h
    3031
    31 # If the linker supports a "--hash-style=" option, use traditional
    32 # Sysv hash tables.  (If it doesn't support that option, assume
    33 # that traditional hash tables will be used by default.)
    34 ld_has_hash_style = $(shell $(LD) --help | grep "hash-style=")
    35 ifeq ($(ld_has_hash_style),)
    36 HASH_STYLE=
    37 else
    38 HASH_STYLE="-Wl,--hash-style=sysv"
    39 endif
    4032
    41 
    42 # Likewise, some versions of GAS may need a "-a32" flag, to force the
    43 # output file to be 32-bit compatible.
    44 
    45 A32 = $(shell ($(AS) --help -v 2>&1 | grep -q -e "-a32") && /bin/echo "-a32")
    4633
    4734.s.o:
    4835        $(M4) $(M4FLAGS) -I../ $< | $(AS) $(A32) $(ASFLAGS) -o $@
    4936.c.o:
    50         $(CC) -include ../$(PLATFORM_H) -c $< $(CDEFINES) $(CDEBUG) $(COPT) -marm $(WFORMAT)  -o $@
     37        $(CC) -arch arm -include ../$(PLATFORM_H) -c $< $(CDEFINES) $(CDEBUG) $(COPT) -marm $(WFORMAT)  -o $@
    5138
    52 SPOBJ = pad.o  arm-spentry.o arm-subprims.o
     39SPOBJ = arm-spentry.o arm-subprims.o
    5340ASMOBJ = arm-asmutils.o imports.o
    5441
     
    6552        Threads.h arm-exceptions.h $(PLATFORM_H)
    6653
    67 # Subprims linked into the kernel ?
    68 # Yes:
    6954
    7055KSPOBJ = $(SPOBJ)
    71 all:    ../../armcl
     56all:    ../../darmcl
     57
     58OSLIBS = /Developer/Platforms/iPhoneOS.platform/Developer/usr/llvm-gcc-4.2/lib/gcc/arm-apple-darwin10/4.2.1/v6/libgcc.a -lSystem /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk/usr/lib/crt1.o /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.1.3/Symbols/usr/lib/libgcc_s.1.dylib
    7259
    7360
    74 # No:
    75 
    76 # KSPOBJ=
    77 # all:  ../../ppccl ../../subprims.so
    78 
    79 OSLIBS = -ldl -lm -lpthread
    80 
    81 
    82 ../../armcl:    $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ)
    83         $(CC)  $(CDEBUG)  -Wl,--export-dynamic $(HASH_STYLE) -o $@ -T ./armdarwin.x $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ) $(OSLIBS)
     61../../darmcl:   $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ)
     62        $(LD) -pagezero_size 0x8000 $(KSPOBJ) -L/Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.1.3/Symbols/usr/lib  -arch armv6 -o $@   $(KERNELOBJ) $(DEBUGOBJ) $(OSLIBS)
    8463
    8564
     
    9170
    9271cclean:
    93         $(RM) -f $(KERNELOBJ) $(DEBUGOBJ) ../../ppccl
     72        $(RM) -f $(KERNELOBJ) $(DEBUGOBJ) ../../darmcl
    9473
    9574clean:  cclean
    9675        $(RM) -f $(SPOBJ)
    9776
    98 strip:  ../../ppccl
    99         strip -g ../../ppccl
     77strip:  ../../darmcl
     78        strip -g ../../darmcl
Note: See TracChangeset for help on using the changeset viewer.