forked from feizwang/quarkfsp
-
Notifications
You must be signed in to change notification settings - Fork 3
/
coreboot_fsp1_1.sh
executable file
·72 lines (67 loc) · 2.05 KB
/
coreboot_fsp1_1.sh
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/bin/bash
#
EDK2_DIR=$1
COREBOOT_DIR=$2
EDK2_BUILD_TYPE=$3
COREBOOT_BUILD_TYPE=$EDK2_BUILD_TYPE
COREBOOT_FSP_VERSION_DIR=fsp1_1
EDK2_FSP_SUB_DIR=Fsp1_1
COREBOOT_FSP_SUB_DIR=$EDK2_FSP_SUB_DIR
SOC_TYPE=quark
COREBOOT_INCLUDE_DIR=$COREBOOT_DIR/src/vendorcode/intel/fsp/$COREBOOT_FSP_VERSION_DIR/$SOC_TYPE
COREBOOT_FSP_DIR=$COREBOOT_DIR/3rdparty/blobs/soc/intel/$SOC_TYPE/$COREBOOT_FSP_SUB_DIR/$COREBOOT_BUILD_TYPE
#
# Create the necessary directories
#
if [ ! -e $COREBOOT_DIR/src/vendorcode/intel/fsp/ ]
then
mkdir $COREBOOT_DIR/src/vendorcode/intel/fsp/
fi
if [ ! -e $COREBOOT_DIR/src/vendorcode/intel/fsp/$COREBOOT_FSP_VERSION_DIR/ ]
then
mkdir $COREBOOT_DIR/src/vendorcode/intel/fsp/$COREBOOT_FSP_VERSION_DIR/
fi
if [ ! -e $COREBOOT_DIR/src/vendorcode/intel/fsp/$COREBOOT_FSP_VERSION_DIR/$SOC_TYPE/ ]
then
mkdir $COREBOOT_DIR/src/vendorcode/intel/fsp/$COREBOOT_FSP_VERSION_DIR/$SOC_TYPE/
fi
if [ ! -e $COREBOOT_DIR/3rdparty/ ]
then
mkdir $COREBOOT_DIR/3rdparty/
fi
if [ ! -e $COREBOOT_DIR/3rdparty/blobs/ ]
then
mkdir $COREBOOT_DIR/3rdparty/blobs/
fi
if [ ! -e $COREBOOT_DIR/3rdparty/blobs/soc/ ]
then
mkdir $COREBOOT_DIR/3rdparty/blobs/soc/
fi
if [ ! -e $COREBOOT_DIR/3rdparty/blobs/soc/intel/ ]
then
mkdir $COREBOOT_DIR/3rdparty/blobs/soc/intel/
fi
if [ ! -e $COREBOOT_DIR/3rdparty/blobs/soc/intel/$SOC_TYPE/ ]
then
mkdir $COREBOOT_DIR/3rdparty/blobs/soc/intel/$SOC_TYPE/
fi
if [ ! -e $COREBOOT_DIR/3rdparty/blobs/soc/intel/$SOC_TYPE/$COREBOOT_FSP_SUB_DIR/ ]
then
mkdir $COREBOOT_DIR/3rdparty/blobs/soc/intel/$SOC_TYPE/$COREBOOT_FSP_SUB_DIR/
fi
if [ ! -e $COREBOOT_DIR/3rdparty/blobs/soc/intel/$SOC_TYPE/$COREBOOT_FSP_SUB_DIR/$COREBOOT_BUILD_TYPE/ ]
then
mkdir $COREBOOT_DIR/3rdparty/blobs/soc/intel/$SOC_TYPE/$COREBOOT_FSP_SUB_DIR/$COREBOOT_BUILD_TYPE/
fi
#
# Copy the files
#
cp $EDK2_DIR/QuarkFspBinPkg/$EDK2_FSP_SUB_DIR/Include/*.h $COREBOOT_INCLUDE_DIR/
cp $EDK2_DIR/QuarkFspBinPkg/$EDK2_FSP_SUB_DIR/$EDK2_BUILD_TYPE/*.fd $COREBOOT_FSP_DIR/
#
# Display the files
#
echo $COREBOOT_INCLUDE_DIR
ls -l $COREBOOT_INCLUDE_DIR
echo $COREBOOT_FSP_DIR
ls -l $COREBOOT_FSP_DIR