
Move the source tar balls download to "dl_files" of meta_data.yaml. The kernel stuff is downloaded via "downloader -s". dl_hook deals with the kernel stuff locally. Test Plan: - PASS: Build kernel-std - PASS: Build kernel-rt - PASS: Build intel-opae-fpga - PASS: Build image - Pass: Boot system Story: 2009221 Task: 44577 Signed-off-by: Li Zhou <li.zhou@windriver.com> Signed-off-by: Yue Tao <Yue.Tao@windriver.com> Change-Id: Ib63553fb42e96a4eab8b16b47d7b4e2172ffe13c
36 lines
701 B
Bash
Executable File
36 lines
701 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# The only parameter is the name of the folder where the source code
|
|
# is extracted to. Be aware that the extracted package should
|
|
# be put at the same path where this script is located.
|
|
# Tools needed: unzip/rpm2cpio/cpio
|
|
|
|
OPAE_PKG=OPAE_1.3.7-5_el7.zip
|
|
OPAE_DRV=opae-intel-fpga-driver-2.0.1
|
|
|
|
unzip ./${OPAE_PKG}
|
|
if [ $? -ne 0 ]
|
|
then
|
|
echo "unzip failed: OPAE source!"
|
|
exit 1
|
|
fi
|
|
|
|
cd OPAE/source_code
|
|
rpm2cpio ${OPAE_DRV}-*.src.rpm | cpio -i
|
|
if [ $? -ne 0 ]
|
|
then
|
|
echo "rpm2cpio/cpio failed: OPAE source!"
|
|
exit 1
|
|
fi
|
|
|
|
tar zxvf ${OPAE_DRV}.tar.gz
|
|
if [ $? -ne 0 ]
|
|
then
|
|
echo "tar failed: OPAE source!"
|
|
exit 1
|
|
fi
|
|
|
|
mv ${OPAE_DRV} ../../$1
|
|
cd ../../
|
|
rm OPAE ${OPAE_PKG} -rf
|