diff options
| author | Slawomir Stepien <sst@poczta.fm> | 2025-01-26 14:34:19 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-01-27 15:47:11 +0000 |
| commit | 2960300ba09a56cb8d838607b3bbecb5cf90e07a (patch) | |
| tree | b835770718637206f0a379237f41a312f358fd4e /meta | |
| parent | 0ddac246e198d37fcab80f2aeb75b333141494d2 (diff) | |
| download | poky-2960300ba09a56cb8d838607b3bbecb5cf90e07a.tar.gz | |
kernel-yocto: move the cp of ${KBUILD_DEFCONFIG} file outside if body
In both true/false cases, we will cp the file, so move the invocation
after the if body.
In addition, misleading comment has been removed.
(From OE-Core rev: fdd7fec29314b3cd07a98943bbbf6996877e90f4)
Signed-off-by: Slawomir Stepien <sst@poczta.fm>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/classes-recipe/kernel-yocto.bbclass | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/meta/classes-recipe/kernel-yocto.bbclass b/meta/classes-recipe/kernel-yocto.bbclass index c45abf6ddc..cef6b9ec3f 100644 --- a/meta/classes-recipe/kernel-yocto.bbclass +++ b/meta/classes-recipe/kernel-yocto.bbclass | |||
| @@ -150,10 +150,6 @@ do_kernel_metadata() { | |||
| 150 | # from the source tree, into a common location and normalized "defconfig" name, | 150 | # from the source tree, into a common location and normalized "defconfig" name, |
| 151 | # where the rest of the process will include and incoroporate it into the build | 151 | # where the rest of the process will include and incoroporate it into the build |
| 152 | # | 152 | # |
| 153 | # If the fetcher has already placed a defconfig in UNPACKDIR (from the SRC_URI), | ||
| 154 | # we don't overwrite it, but instead warn the user that SRC_URI defconfigs take | ||
| 155 | # precendence. | ||
| 156 | # | ||
| 157 | if [ -n "${KBUILD_DEFCONFIG}" ]; then | 153 | if [ -n "${KBUILD_DEFCONFIG}" ]; then |
| 158 | if [ -f "${S}/arch/${ARCH}/configs/${KBUILD_DEFCONFIG}" ]; then | 154 | if [ -f "${S}/arch/${ARCH}/configs/${KBUILD_DEFCONFIG}" ]; then |
| 159 | if [ -f "${UNPACKDIR}/defconfig" ]; then | 155 | if [ -f "${UNPACKDIR}/defconfig" ]; then |
| @@ -163,10 +159,8 @@ do_kernel_metadata() { | |||
| 163 | if [ $? -ne 0 ]; then | 159 | if [ $? -ne 0 ]; then |
| 164 | bbdebug 1 "detected SRC_URI or patched defconfig in UNPACKDIR. ${KBUILD_DEFCONFIG} copied over it" | 160 | bbdebug 1 "detected SRC_URI or patched defconfig in UNPACKDIR. ${KBUILD_DEFCONFIG} copied over it" |
| 165 | fi | 161 | fi |
| 166 | cp -f ${S}/arch/${ARCH}/configs/${KBUILD_DEFCONFIG} ${UNPACKDIR}/defconfig | ||
| 167 | else | ||
| 168 | cp -f ${S}/arch/${ARCH}/configs/${KBUILD_DEFCONFIG} ${UNPACKDIR}/defconfig | ||
| 169 | fi | 162 | fi |
| 163 | cp -f ${S}/arch/${ARCH}/configs/${KBUILD_DEFCONFIG} ${UNPACKDIR}/defconfig | ||
| 170 | in_tree_defconfig="${UNPACKDIR}/defconfig" | 164 | in_tree_defconfig="${UNPACKDIR}/defconfig" |
| 171 | else | 165 | else |
| 172 | bbfatal "A KBUILD_DEFCONFIG '${KBUILD_DEFCONFIG}' was specified, but not present in the source tree (${S}/arch/${ARCH}/configs/)" | 166 | bbfatal "A KBUILD_DEFCONFIG '${KBUILD_DEFCONFIG}' was specified, but not present in the source tree (${S}/arch/${ARCH}/configs/)" |
