1SubDir HAIKU_TOP src system boot arch x86 ; 2 3SetupFeatureObjectsDir $(TARGET_BOOT_PLATFORM) ; 4 5DEFINES += _BOOT_MODE ; 6 7local kernelArchSources = 8 arch_elf.cpp 9; 10 11local kernelArchSpecificSources ; 12local kernelLibArchSpecificSources ; 13if $(TARGET_ARCH) = x86_64 && $(TARGET_BOOT_PLATFORM) = efi { 14 kernelArchSpecificSources = cpuid.cpp ; 15 kernelLibArchSpecificSources = arch_string.cpp ; 16} else { 17 kernelArchSpecificSources = cpuid.S ; 18 kernelLibArchSpecificSources = arch_string.S ; 19} 20 21local librootOsArchSources = 22 byteorder.S 23; 24 25BootMergeObject boot_arch_$(TARGET_KERNEL_ARCH).o : 26 $(kernelArchSources) 27 $(kernelArchSpecificSources) 28 $(kernelLibArchSpecificSources) 29 $(librootOsArchSources) 30 : -std=c++11 # additional flags 31; 32 33SEARCH on [ FGristFiles $(kernelArchSources) ] 34 = [ FDirName $(HAIKU_TOP) src system kernel arch x86 ] ; 35 36if $(TARGET_ARCH) = x86_64 && $(TARGET_BOOT_PLATFORM) = efi { 37SEARCH on [ FGristFiles $(kernelArchSpecificSources) ] 38 = [ FDirName $(HAIKU_TOP) src system kernel arch x86 64 ] ; 39SEARCH on [ FGristFiles $(kernelLibArchSpecificSources) ] 40 = [ FDirName $(HAIKU_TOP) src system libroot posix string arch x86_64 ] ; 41} else { 42SEARCH on [ FGristFiles $(kernelArchSpecificSources) ] 43 = [ FDirName $(HAIKU_TOP) src system kernel arch x86 32 ] ; 44SEARCH on [ FGristFiles $(kernelLibArchSpecificSources) ] 45 = [ FDirName $(HAIKU_TOP) src system kernel lib arch x86 ] ; 46} 47SEARCH on [ FGristFiles $(librootOsArchSources) ] 48 = [ FDirName $(HAIKU_TOP) src system libroot os arch x86 ] ; 49