summaryrefslogtreecommitdiff
path: root/Platform/Intel/ClevoOpenBoardPkg/N1xxWU/cln.bat
blob: 61c8a7d1a4f412359ca0d2468fdc3fdba3120789 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
@REM @file
@REM
@REM Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
@REM SPDX-License-Identifier: BSD-2-Clause-Patent
@REM

@echo off
echo.
echo Run build cleanall...
echo.

cd ..

if not defined WORKSPACE set WORKSPACE=%cd%
if not defined WORKSPACE_PLATFORM set WORKSPACE_PLATFORM=%cd%
if not defined WORKSPACE_SILICON set WORKSPACE_SILICON=%cd%

REM build cleanall

echo.
echo Directories to clean...
echo.

if exist %WORKSPACE%\build rmdir /q /s %WORKSPACE%\build
if exist %WORKSPACE%\conf\.cache rmdir /q /s %WORKSPACE%\conf\.cache

echo.
echo Files to clean...
echo.

if exist %WORKSPACE%\edk2.log del %WORKSPACE%\edk2.log
if exist %WORKSPACE%\Conf\build_rule.txt del %WORKSPACE%\Conf\build_rule.txt
if exist %WORKSPACE%\Conf\FrameworkDatabase.db del %WORKSPACE%\Conf\FrameworkDatabase.db
if exist %WORKSPACE%\Conf\target.txt del %WORKSPACE%\Conf\target.txt
if exist %WORKSPACE%\Conf\tools_def.txt del %WORKSPACE%\Conf\tools_def.txt
@REM *.c.c is generated by Catalog Debug feature across code tree.
@REM
del /s *.c.c > nul 2>&1

cd %WORKSPACE_PLATFORM%\%PROJECT%

del /f /q Prep.log > nul 2>&1
del /f /q ..\Build.log > nul 2>&1

echo.
echo All done...
echo.
@echo on