summaryrefslogtreecommitdiff
path: root/recipes-kernel/linux/linux-toradex_%.bbappend
blob: 04a245130af71e623ac8cdcb7fa4d97c5b9dc3ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
do_shared_workdir_append () {
    if [ -f include/config/auto.conf ]; then
        mkdir -p $kerneldir/include/config/
        cp -f include/config/auto.conf $kerneldir/include/config/
    fi

    ln -sf ${STAGING_KERNEL_DIR} ${kerneldir}/source

    if [ ! -f $kerneldir/Makefile ]; then
        VERSION=$(grep "^VERSION =" Makefile | sed s/.*=\ *//)
        PATCHLEVEL=$(grep "^PATCHLEVEL =" Makefile | sed s/.*=\ *//)
        bash ${S}/scripts/mkmakefile $(pwd) $kerneldir $VERSION $PATCHLEVEL
    fi
}