Skip to content

99. Get the source code

vraevsky edited this page Jul 7, 2018 · 6 revisions

Kernel/U-Boot Source Code

Clone the meta-compulab-imx8

mkdir compulab-bsp
cd compulab-bsp
git clone -b devel_ga https://github.com/compulab-yokneam/meta-compulab-imx8 sources/meta-compulab-imx8
export BUILDDIR=$(pwd)
export METADIR=$(pwd)/sources/meta-compulab-imx8

Set a target

Kernel U-Boot
export TARGET=linux-imx export TARGET=u-boot-imx
export DEFCONFIG=cl-som-imx8_defconfig export DEFCONFIG=cl-som-imx8_defconfig
export ORIGIN=https://source.codeaurora.org/external/imx/linux-imx.git export ORIGIN=https://source.codeaurora.org/external/imx/uboot-imx.git
export HEAD=rel_imx_4.9.51_8mq_ga export HEAD=rel_imx_4.9.51_8mq_ga
export PATCHES=${METADIR}/recipes-kernel/linux/compulab/cl-som-imx8 export PATCHES=${METADIR}/recipes-bsp/u-boot/compulab/cl-som-imx8

Clone the target source code & patch it

mkdir -p ${BUILDDIR}/${TARGET}
cd ${BUILDDIR}/${TARGET}
git clone ${ORIGIN} src
git -C src checkout -b development ${HEAD}
git -C src am ${PATCHES}/*.patch
Clone this wiki locally