Makefile.inc 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # $OpenBSD: Makefile.inc,v 1.17 2011/03/18 06:21:40 matthew Exp $
  2. # $NetBSD: Makefile.inc,v 1.5 1996/02/01 22:33:01 mycroft Exp $
  3. BINDIR= /usr/mdec
  4. # sun4:
  5. # The first 8MB of physical memory are mapped 1:1.
  6. # sun4c:
  7. # Worst case sun4c systems have their memory in non-contiguous 4MB
  8. # areas, therefore we must ensure the boot code never crosses a 4MB
  9. # boundary.
  10. # A SPARCstation IPC with 12MB memory in 1MB SIMMs, running PROM 2.9,
  11. # only maps virtual memory up to 0x3aefff.
  12. # sun4m:
  13. # The minimal contiguous memory area will be 8MB (SS4/SS5 8MB DIMMs),
  14. # but there is no guarantee anything will be mapped at address zero
  15. # if the DIMM are set in a pathological (dis)order, as in:
  16. # ok cd /memory
  17. # ok .attributes
  18. # reg 00000000 08000000 00800000
  19. # 00000000 0a000000 00800000
  20. # 00000000 0c000000 00800000
  21. # 00000000 0e000000 00800000
  22. # available 00000000 0e000000 007a6000
  23. # 00000000 0c000000 00800000
  24. # 00000000 0a000000 00800000
  25. # 00000000 08000000 00800000
  26. # name memory
  27. # where the four 8MB DIMMs are mapped at 32MB intervals from 128MB
  28. # onwards.
  29. # sun4d:
  30. # Similar to sun4m, but the minimal contiguous memory area will be 32MB,
  31. # and all physical memory will be packed contiguous from address zero
  32. # onwards.
  33. #
  34. # The following values of RELOC and RELOC2 have been choosen to work on as
  35. # many systems as possible, yet allowing small enough kernels to be loaded
  36. # at the beginning of the physical memory.
  37. RELOC= 0x358000
  38. RELOC2= 0x398000
  39. CFLAGS+= -fno-stack-protector
  40. # XXX <machine/param.h> incorrectly uses STANDALONE instead of _STANDALONE
  41. DEFS= -DSTANDALONE -D_STANDALONE -DRELOC=${RELOC} -DSUN_BOOTPARAMS \
  42. -DSUN4 -DSUN4C -DSUN4D -DSUN4M
  43. ### Figure out what to use for libsa
  44. LIBSADIR= ${.CURDIR}/../libsa
  45. .if exists(${LIBSADIR}/${__objdir})
  46. LIBSAOBJDIR= ${LIBSADIR}/${__objdir}
  47. .else
  48. LIBSAOBJDIR= ${LIBSADIR}
  49. .endif
  50. LIBSA= ${LIBSAOBJDIR}/libsa.a
  51. ### Figure out what to use for libz
  52. LIBZDIR= ${.CURDIR}/../libz
  53. .if exists(${LIBZDIR}/${__objdir})
  54. LIBZOBJDIR= ${LIBZDIR}/${__objdir}
  55. .else
  56. LIBZOBJDIR= ${LIBZDIR}
  57. .endif
  58. LIBZ= ${LIBZOBJDIR}/libz.a