⛏️ index : haiku.git

SubDir HAIKU_TOP src system kernel arch arm64 ;

SubDirHdrs $(HAIKU_TOP) src add-ons kernel bus_managers acpi acpica include ;
SubDirHdrs $(SUBDIR) $(DOTDOT) generic ;
UsePrivateKernelHeaders ;

SEARCH_SOURCE += [ FDirName $(SUBDIR) $(DOTDOT) generic ] ;
SEARCH_SOURCE += [ FDirName $(SUBDIR) $(DOTDOT) arm ] ;

KernelMergeObject kernel_arch_arm64.o :
	arch_elf.cpp
	arch_int.cpp
	arch_commpage.cpp
	arch_thread.cpp
	arch_cpu.cpp
	arch_debug_console.cpp
	arch_debug.cpp
	arch_user_debugger.cpp
	arch_vm_translation_map.cpp
	arch_vm.cpp
	arch_timer.cpp
	arch_system_info.cpp
	arch_smp.cpp
	arch_real_time_clock.cpp
	arch_platform.cpp
	arch_asm.S
	arch_int_gicv2.cpp
	soc.cpp
	acpi_irq_routing_table.cpp

	VMSAv8TranslationMap.cpp
	PMAPPhysicalPageMapper.cpp

	generic_msi.cpp

    # Serial UART and drivers
	debug_uart.cpp
	debug_uart_8250.cpp
#	arch_uart_8250_omap.cpp
	arch_uart_pl011.cpp
	arch_uart_linflex.cpp

	:
	$(TARGET_KERNEL_PIC_CCFLAGS) -Wno-unused
	:
;

CreateAsmStructOffsetsHeader asm_offsets.h : asm_offsets.cpp : $(TARGET_KERNEL_ARCH) ;

# syscall headers are generated on the fly, so we need a explicit dependency.
Includes [ FGristFiles arch_int.cpp arch_asm.S ]
	: <syscalls!$(TARGET_PACKAGING_ARCH)>syscall_numbers.h ;