From 5f2549b19833bc4e37770076beacf95d1abd5d40 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Fri, 21 Jul 2023 15:47:31 +0300 Subject: [PATCH] BuildSystem: Strip kernel. We will add the map once we use it --- kernel/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel/CMakeLists.txt b/kernel/CMakeLists.txt index e024ef65..a5275692 100644 --- a/kernel/CMakeLists.txt +++ b/kernel/CMakeLists.txt @@ -167,6 +167,11 @@ add_custom_command( COMMAND cp ${CRTEND} . ) +add_custom_command( + TARGET kernel POST_BUILD + COMMAND x86_64-banan_os-strip ${CMAKE_CURRENT_BINARY_DIR}/kernel +) + add_custom_command( OUTPUT font/prefs.psf.o COMMAND cd ${CMAKE_CURRENT_SOURCE_DIR} && objcopy -O ${ELF_FORMAT} -B i386 -I binary font/prefs.psf ${CMAKE_CURRENT_BINARY_DIR}/font/prefs.psf.o