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; 31 32SEARCH on [ FGristFiles $(kernelArchSources) ] 33 = [ FDirName $(HAIKU_TOP) src system kernel arch x86 ] ; 34 35if $(TARGET_ARCH) = x86_64 && $(TARGET_BOOT_PLATFORM) = efi { 36SEARCH on [ FGristFiles $(kernelArchSpecificSources) ] 37 = [ FDirName $(HAIKU_TOP) src system kernel arch x86 64 ] ; 38SEARCH on [ FGristFiles $(kernelLibArchSpecificSources) ] 39 = [ FDirName $(HAIKU_TOP) src system libroot posix string arch x86_64 ] ; 40} else { 41SEARCH on [ FGristFiles $(kernelArchSpecificSources) ] 42 = [ FDirName $(HAIKU_TOP) src system kernel arch x86 32 ] ; 43SEARCH on [ FGristFiles $(kernelLibArchSpecificSources) ] 44 = [ FDirName $(HAIKU_TOP) src system kernel lib arch x86 ] ; 45} 46SEARCH on [ FGristFiles $(librootOsArchSources) ] 47 = [ FDirName $(HAIKU_TOP) src system libroot os arch x86 ] ; 48