diff options
Diffstat (limited to 'meta/classes-recipe/kernel-yocto.bbclass')
-rw-r--r-- | meta/classes-recipe/kernel-yocto.bbclass | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/meta/classes-recipe/kernel-yocto.bbclass b/meta/classes-recipe/kernel-yocto.bbclass index 6468e8aa90..6d5c3b6327 100644 --- a/meta/classes-recipe/kernel-yocto.bbclass +++ b/meta/classes-recipe/kernel-yocto.bbclass | |||
@@ -158,7 +158,7 @@ do_kernel_metadata() { | |||
158 | # one already placed in UNPACKDIR | 158 | # one already placed in UNPACKDIR |
159 | cmp "${UNPACKDIR}/defconfig" "${S}/arch/${ARCH}/configs/${KBUILD_DEFCONFIG}" | 159 | cmp "${UNPACKDIR}/defconfig" "${S}/arch/${ARCH}/configs/${KBUILD_DEFCONFIG}" |
160 | if [ $? -ne 0 ]; then | 160 | if [ $? -ne 0 ]; then |
161 | bbdebug 1 "detected SRC_URI or unpatched defconfig in UNPACKDIR. ${KBUILD_DEFCONFIG} copied over it" | 161 | bbdebug 1 "detected SRC_URI or patched defconfig in UNPACKDIR. ${KBUILD_DEFCONFIG} copied over it" |
162 | fi | 162 | fi |
163 | cp -f ${S}/arch/${ARCH}/configs/${KBUILD_DEFCONFIG} ${UNPACKDIR}/defconfig | 163 | cp -f ${S}/arch/${ARCH}/configs/${KBUILD_DEFCONFIG} ${UNPACKDIR}/defconfig |
164 | else | 164 | else |
@@ -234,8 +234,6 @@ do_kernel_metadata() { | |||
234 | for f in ${feat_dirs}; do | 234 | for f in ${feat_dirs}; do |
235 | if [ -d "${UNPACKDIR}/$f/kernel-meta" ]; then | 235 | if [ -d "${UNPACKDIR}/$f/kernel-meta" ]; then |
236 | includes="$includes -I${UNPACKDIR}/$f/kernel-meta" | 236 | includes="$includes -I${UNPACKDIR}/$f/kernel-meta" |
237 | elif [ -d "${UNPACKDIR}/../oe-local-files/$f" ]; then | ||
238 | includes="$includes -I${UNPACKDIR}/../oe-local-files/$f" | ||
239 | elif [ -d "${UNPACKDIR}/$f" ]; then | 237 | elif [ -d "${UNPACKDIR}/$f" ]; then |
240 | includes="$includes -I${UNPACKDIR}/$f" | 238 | includes="$includes -I${UNPACKDIR}/$f" |
241 | fi | 239 | fi |
@@ -379,19 +377,19 @@ do_kernel_checkout() { | |||
379 | set +e | 377 | set +e |
380 | 378 | ||
381 | source_dir=`echo ${S} | sed 's%/$%%'` | 379 | source_dir=`echo ${S} | sed 's%/$%%'` |
382 | source_workdir="${WORKDIR}/git" | 380 | source_workdir="${UNPACKDIR}/git" |
383 | if [ -d "${WORKDIR}/git/" ]; then | 381 | if [ -d "${UNPACKDIR}/git/" ]; then |
384 | # case: git repository | 382 | # case: git repository |
385 | # if S is WORKDIR/git, then we shouldn't be moving or deleting the tree. | 383 | # if S is WORKDIR/git, then we shouldn't be moving or deleting the tree. |
386 | if [ "${source_dir}" != "${source_workdir}" ]; then | 384 | if [ "${source_dir}" != "${source_workdir}" ]; then |
387 | if [ -d "${source_workdir}/.git" ]; then | 385 | if [ -d "${source_workdir}/.git" ]; then |
388 | # regular git repository with .git | 386 | # regular git repository with .git |
389 | rm -rf ${S} | 387 | rm -rf ${S} |
390 | mv ${WORKDIR}/git ${S} | 388 | mv ${UNPACKDIR}/git ${S} |
391 | else | 389 | else |
392 | # create source for bare cloned git repository | 390 | # create source for bare cloned git repository |
393 | git clone ${WORKDIR}/git ${S} | 391 | git clone ${WORKDIR}/git ${S} |
394 | rm -rf ${WORKDIR}/git | 392 | rm -rf ${UNPACKDIR}/git |
395 | fi | 393 | fi |
396 | fi | 394 | fi |
397 | cd ${S} | 395 | cd ${S} |
@@ -434,7 +432,7 @@ do_kernel_checkout() { | |||
434 | 432 | ||
435 | set -e | 433 | set -e |
436 | } | 434 | } |
437 | do_kernel_checkout[dirs] = "${S} ${WORKDIR}" | 435 | do_kernel_checkout[dirs] = "${S} ${UNPACKDIR}" |
438 | 436 | ||
439 | addtask kernel_checkout before do_kernel_metadata after do_symlink_kernsrc | 437 | addtask kernel_checkout before do_kernel_metadata after do_symlink_kernsrc |
440 | addtask kernel_metadata after do_validate_branches do_unpack before do_patch | 438 | addtask kernel_metadata after do_validate_branches do_unpack before do_patch |
@@ -442,6 +440,11 @@ do_kernel_metadata[depends] = "kern-tools-native:do_populate_sysroot" | |||
442 | do_kernel_metadata[file-checksums] = " ${@get_dirs_with_fragments(d)}" | 440 | do_kernel_metadata[file-checksums] = " ${@get_dirs_with_fragments(d)}" |
443 | do_validate_branches[depends] = "kern-tools-native:do_populate_sysroot" | 441 | do_validate_branches[depends] = "kern-tools-native:do_populate_sysroot" |
444 | 442 | ||
443 | # ${S} doesn't exist for us at unpack | ||
444 | do_qa_unpack() { | ||
445 | return | ||
446 | } | ||
447 | |||
445 | do_kernel_configme[depends] += "virtual/${TARGET_PREFIX}binutils:do_populate_sysroot" | 448 | do_kernel_configme[depends] += "virtual/${TARGET_PREFIX}binutils:do_populate_sysroot" |
446 | do_kernel_configme[depends] += "virtual/${TARGET_PREFIX}gcc:do_populate_sysroot" | 449 | do_kernel_configme[depends] += "virtual/${TARGET_PREFIX}gcc:do_populate_sysroot" |
447 | do_kernel_configme[depends] += "bc-native:do_populate_sysroot bison-native:do_populate_sysroot" | 450 | do_kernel_configme[depends] += "bc-native:do_populate_sysroot bison-native:do_populate_sysroot" |