From 70f89ed1fc6218f762f0c72965b13381f5713acb 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 e024ef6544..a527569285 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