Makefile: adapt cleaning targets for arch directory

This commit is contained in:
Markus Meissner 2023-05-09 13:52:51 +02:00
parent bc148f1341
commit 3ea82ec31e
No known key found for this signature in database
GPG Key ID: 44CB2D868DD16BDA

View File

@ -609,8 +609,8 @@ echo_modules:
modules.clean:
for dir in $(module_dirs) \
; do \
$(MAKE) -C "build/$$dir" clean ; \
rm "build/$$dir/.configured" ; \
$(MAKE) -C "build/${CONFIG_TARGET_ARCH}/$$dir" clean ; \
rm -f "build/${CONFIG_TARGET_ARCH}/$$dir/.configured" ; \
done
# Inject a GPG key into the image - this is most useful when testing in qemu,
@ -631,7 +631,7 @@ real.clean:
$(kernel_headers) \
; do \
if [ ! -z "$$dir" ]; then \
rm -rf "build/$$dir"; \
rm -rf "build/${CONFIG_TARGET_ARCH}/$$dir"; \
fi; \
done
cd install && rm -rf -- *