SubDir HAIKU_TOP src system boot platform efi arch riscv64 ;

SubDirHdrs $(HAIKU_TOP) src system boot platform efi ;

UsePrivateHeaders [ FDirName kernel platform ] ;
UsePrivateHeaders [ FDirName kernel boot platform efi ] ;

local platform ;
for platform in [ MultiBootSubDirSetup efi ] {
    on $(platform) {

	local arch_src =
		crt0-efi-$(TARGET_ARCH).S
		entry. S
		relocation_func.cpp
		arch_start.cpp
		arch_smp.cpp
		arch_mmu.cpp
		arch_timer.cpp
		;

	BootMergeObject boot_platform_efi_riscv64.o :
		$(arch_src)
		;
	}
}
