sources 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. ################################################################################
  2. #
  3. # Copyright (c) 2012 Minoca Corp.
  4. #
  5. # This file is licensed under the terms of the GNU General Public License
  6. # version 3. Alternative licensing terms are available. Contact
  7. # info@minocacorp.com for details. See the LICENSE file at the root of this
  8. # project for complete licensing information.
  9. #
  10. # Binary Name:
  11. #
  12. # loader (sources)
  13. #
  14. # Abstract:
  15. #
  16. # This file includes the common build arguments for the boot loaders.
  17. #
  18. # Author:
  19. #
  20. # Evan Green 29-Jul-2012
  21. #
  22. # Environment:
  23. #
  24. # Boot
  25. #
  26. ################################################################################
  27. BINARY ?= loader
  28. BINARYTYPE ?= staticapp
  29. BINPLACE = bin
  30. OBJS = loader.o \
  31. bootim.o \
  32. dbgport.o \
  33. X86_OBJS = x86/archsupc.o \
  34. x86/dbgparch.o \
  35. x86/entry.o \
  36. x86/paging.o \
  37. x86/kernxfr.o \
  38. X64_OBJS = x64/kernxfr.o \
  39. x64/paging.o \
  40. x86/archsupc.o \
  41. x86/dbgparch.o \
  42. x86/entry.o \
  43. ARMV7_OBJS = armv7/archsupc.o \
  44. armv7/dbgparch.o \
  45. armv7/paging.o \
  46. armv7/kernxfr.o \
  47. ARMV6_OBJS = armv6/archsupc.o \
  48. armv7/dbgparch.o \
  49. armv7/paging.o \
  50. armv7/kernxfr.o \
  51. TARGETLIBS = $(OBJROOT)/os/kernel/kd/boot/kdboot.a \
  52. $(OBJROOT)/os/kernel/kd/kdusb/kdusb.a \
  53. $(OBJROOT)/os/lib/rtl/base/boot/basertlb.a \
  54. $(OBJROOT)/os/lib/rtl/kmode/krtl.a \
  55. $(OBJROOT)/os/lib/im/native/imn.a \
  56. $(OBJROOT)/os/lib/fatlib/fat.a \
  57. $(OBJROOT)/os/lib/basevid/basevid.a \
  58. $(OBJROOT)/os/lib/bconflib/bconflib.a \
  59. $(OBJROOT)/os/kernel/hl/boot/hlboot.a \
  60. $(OBJROOT)/os/kernel/mm/boot/mmboot.a \
  61. ifneq (,$(filter armv7 armv6,$(ARCH)))
  62. TARGETLIBS += $(OBJROOT)/os/kernel/$(ARCH)/boot/armboot.a
  63. endif
  64. LDFLAGS += -pie -nodefaultlibs -nostartfiles -nostdlib
  65. EXTRA_SRC_DIRS = x86 x64 armv7 armv6