Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. LOADER_CD9660_SUPPORT?= yes
  2. LOADER_EXT2FS_SUPPORT?= no
  3. LOADER_MSDOS_SUPPORT?= no
  4. LOADER_UFS_SUPPORT?= yes
  5. LOADER_NET_SUPPORT?= yes
  6. LOADER_NFS_SUPPORT?= yes
  7. LOADER_TFTP_SUPPORT?= no
  8. LOADER_GZIP_SUPPORT?= yes
  9. LOADER_BZIP2_SUPPORT?= no
  10. .include <bsd.init.mk>
  11. PROG= loader
  12. NEWVERSWHAT= "Open Firmware loader" ${MACHINE_ARCH}
  13. INSTALLFLAGS= -b
  14. # Architecture-specific loader code
  15. SRCS= conf.c vers.c main.c elf_freebsd.c ppc64_elf_freebsd.c start.c
  16. SRCS+= ucmpdi2.c
  17. .include "${BOOTSRC}/fdt.mk"
  18. .if ${MK_FDT} == "yes"
  19. SRCS+= ofwfdt.c
  20. .endif
  21. .if ${MACHINE_ARCH:Mpowerpc64*} != ""
  22. SRCS+= cas.c
  23. CFLAGS+= -DCAS
  24. .endif
  25. .if ${MACHINE_ARCH} == "powerpc64le"
  26. SRCS+= trampolineLE.S
  27. .endif
  28. HELP_FILES= ${FDTSRC}/help.fdt
  29. HELP_FILENAME= loader.help.ofw
  30. # Always add MI sources
  31. .include "${BOOTSRC}/loader.mk"
  32. .PATH: ${SYSDIR}/libkern
  33. # load address. set in linker script
  34. RELOC?= 0x1C00000
  35. CFLAGS+= -DRELOC=${RELOC} -g
  36. LDFLAGS= -nostdlib -static
  37. LDFLAGS+= -L ${.CURDIR} -T ${.CURDIR}/${MACHINE_ARCH}.ldscript
  38. # Open Firmware standalone support library
  39. LIBOFW= ${BOOTOBJ}/libofw/libofw.a
  40. CFLAGS+= -I${BOOTSRC}/libofw
  41. DPADD= ${LDR_INTERP} ${LIBOFW} ${LIBSAFDT} ${LIBSA}
  42. LDADD= ${LDR_INTERP} ${LIBOFW} ${LIBSAFDT} ${LIBSA}
  43. MK_PIE= no
  44. .include <bsd.prog.mk>