1SubDir HAIKU_TOP src system boot platform next_m68k ; 2 3SubDirHdrs $(HAIKU_TOP) headers private kernel boot platform next_m68k ; 4 5UsePrivateHeaders [ FDirName kernel boot platform $(TARGET_BOOT_PLATFORM) ] ; 6UsePrivateHeaders [ FDirName kernel platform $(TARGET_BOOT_PLATFORM) ] ; 7UsePrivateHeaders [ FDirName kernel disk_device_manager ] ; 8UsePrivateHeaders [ FDirName graphics common ] ; 9#UsePrivateHeaders [ FDirName graphics vesa ] ; 10UsePrivateHeaders [ FDirName storage ] ; 11 12{ 13 local defines = _BOOT_MODE ; 14 15 defines = [ FDefines $(defines) ] ; 16 SubDirCcFlags $(defines) ; # -save-temps 17 SubDirC++Flags $(defines) -fno-rtti ; 18} 19 20local platform ; 21for platform in [ MultiBootSubDirSetup next_m68k ] { 22 on $(platform) { 23 #SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src add-ons accelerants common ] ; 24 25 BootMergeObject boot_platform_next_m68k_shell.o : 26 shell.S 27 : -Wa,--pcrel 28 ; 29 30 31 # cpu-specific stuff 32 # should be moved to boot/arch/m68k/... 33 # TODO: add 020+68851 support 34 35 36 BootMergeObject boot_platform_next_m68k_other.o : 37 # shell.S 38 start.cpp 39 debug.cpp 40 #bios.S 41 console.cpp 42 #serial.cpp 43# Handle.cpp 44 devices.cpp 45 keyboard.cpp 46 menu.cpp 47 mmu.cpp 48 cpu.cpp 49 #smp.cpp 50 #smp_trampoline.S 51 # support.S 52 video.cpp 53 #apm.cpp 54 55 # VESA/DDC EDID 56 #decode_edid.c 57 #dump_edid.c 58 59 : #-Wa,--pcrel 60 : boot_platform_generic_next_m68k.a 61 ; 62 63 64 BootMergeObject boot_platform_next_m68k.o : 65 : : 66 boot_platform_next_m68k_shell.o 67 boot_platform_next_m68k_other.o 68# boot_arch_m68k_030.o 69# boot_arch_m68k_040.o 70 ; 71 72 BootMergeObject aligntest_prg.o : 73 aligntest.c 74 : -Wa,--pcrel 75 ; 76 77 # used to check alignment of struct mon_global 78 # The simplest way to do it was to build a program on a platform we know how to link and run 79 # and we can already build Atari programs as long as they don't need relocations. 80 AtariBootPrgLd aligntest.prg : 81 aligntest_prg.o 82 : $(HAIKU_TOP)/src/system/ldscripts/$(TARGET_ARCH)/boot_prg_atari_m68k.ld 83 : -Bstatic 84 ; 85 } 86} 87 88SEARCH on [ FGristFiles $(genericPlatformSources) ] 89 = [ FDirName $(HAIKU_TOP) src system boot platform generic ] ; 90 91# Tell the build system to where stage1.bin can be found, so it can be used 92# elsewhere. 93SEARCH on stage1.bin = $(SUBDIR) ; 94 95# cf pxe_ia32 Jamfile for stage1 96