Yue Tao a54d2963ab kernel: move the download files to meta_data.yaml
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
2022-02-23 10:49:41 +08:00

26 lines
616 B
Bash
Executable File

#!/bin/bash
# The only parameter is the name of the folder where the source code
# is extracted to. Pay attention to that the extracted package should
# be put at the same path where this script is located.
# Tools needed: tar
KERNEL_HEAD_COMMIT=9e84a42af61ff9c6feb89ab8d61ee5f25fb35c72
DEBIAN_FILE=linux_5.10.28-1.debian.tar.xz
tar xvf linux-yocto-${KERNEL_HEAD_COMMIT}.tar.gz
if [ $? -ne 0 ]
then
echo "tar failed: linux-yocto source!"
exit 1
fi
mv linux-yocto-${KERNEL_HEAD_COMMIT} $1
cd $1
tar xvf ../${DEBIAN_FILE}
if [ $? -ne 0 ]
then
echo "tar failed: debian folder for kernel!"
exit 1
fi