From 494d350aa5a3faa7bed43767c5d19a79bc60bfa5 Mon Sep 17 00:00:00 2001 From: Chen Wang Date: Mon, 19 May 2025 17:31:19 +0800 Subject: [PATCH] bsp: k230: improve cleanup Previously, `scons -c` did not clean up the build directory and the automatically generated link.lds.generated. This is fixed now. Signed-off-by: Chen Wang --- bsp/k230/SConstruct | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bsp/k230/SConstruct b/bsp/k230/SConstruct index 13bf49b42e8..fdb0d5eb872 100644 --- a/bsp/k230/SConstruct +++ b/bsp/k230/SConstruct @@ -56,3 +56,6 @@ generate_ldscript('link.lds', 'link.lds.generated') # make a building DoBuilding(TARGET, objs) + +Clean(TARGET, 'link.lds.generated') +Clean(TARGET, 'build')