From 5ca9053cee7d508fcabaf9a591c26930c0957aaa Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Wed, 14 Mar 2012 14:10:17 +0000 Subject: tools: Add explicit clean rule for SeaBIOS Since seabios-dir is cloned during build we need to check that it exists before recursing into it for clean, following the pattern used for qemu-*-dir etc. Also remove usage of "buildmakevars2shellvars" except when used to poopulate the environment for qemu-xen-traditional's xen-setup script, which is the only user. Signed-off-by: Ian Campbell Acked-by: Ian Jackson Committed-by: Ian Jackson --- tools/firmware/Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools/firmware') diff --git a/tools/firmware/Makefile b/tools/firmware/Makefile index 5d40bcd2f8..696c7afc67 100644 --- a/tools/firmware/Makefile +++ b/tools/firmware/Makefile @@ -55,3 +55,8 @@ seabios-dir-force-update: $(GIT) fetch origin; \ $(GIT) reset --hard $(SEABIOS_UPSTREAM_TAG); \ fi + +subdir-clean-seabios-dir: + set -e; if test -d seabios-dir/.; then \ + $(MAKE) -C seabios-dir clean; \ + fi -- cgit v1.2.3