forked from MarvellEmbeddedProcessors/u-boot-marvell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmyclean.pl
executable file
·40 lines (33 loc) · 911 Bytes
/
myclean.pl
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
#!/usr/bin/perl
#use Getopt::Std;
#getopt('b:v:');
# Make clean
system("make mrproper");
if(defined $opt_b) {
$boardID=$opt_b;
}
else {
$boardID="alp";
}
print "\n**** [Cleaning Make]\t*****\n\n";
#-------------------------------------------------------------
$fail = chdir './tools/marvell/bin_hdr';
system("pwd");
print " clean ./tools/marvell/bin_hdr\n";
$fail = system("make clean BOARD=alp");
if($fail){
print "\n *** Error: make clean\n\n";
exit 1;
}
#-------------------------------------------------------------
$fail = chdir ('../doimage_mv');
system("pwd");
print " clean tools/marvell/doimage_mv\n";
$fail = system("make clean");
if($fail){
print "\n *** Error: make clean\n\n";
exit 1;
}
$fail = chdir ('../../../');
system("pwd");
exit 0;