Skip to content

Commit

Permalink
plugins: kernel: remove use of deprecated config.common.ports config (#…
Browse files Browse the repository at this point in the history
…4116)

Signed-off-by: Ondrej Kubik <ondrej.kubik@canonical.com>
  • Loading branch information
kubiko authored Apr 27, 2023
1 parent 577c6c2 commit 70f9e9d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions snapcraft_legacy/plugins/v2/_kernel_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,11 +281,10 @@ def _do_base_config_cmd(
branch=$(cut -d'.' -f 2- < ${{KERNEL_SRC}}/debian/debian.env)
baseconfigdir=${{KERNEL_SRC}}/debian.${{branch}}/config
archconfigdir=${{KERNEL_SRC}}/debian.${{branch}}/config/${{DEB_ARCH}}
commonconfig=${{baseconfigdir}}/config.common.ports
ubuntuconfig=${{baseconfigdir}}/config.common.ubuntu
archconfig=${{archconfigdir}}/config.common.${{DEB_ARCH}}
flavourconfig=${{archconfigdir}}/config.flavour.{config_flavour}
cat ${{commonconfig}} ${{ubuntuconfig}} ${{archconfig}} ${{flavourconfig}} \
cat ${{ubuntuconfig}} ${{archconfig}} ${{flavourconfig}} \
> {dest_dir}/.config 2>/dev/null || true""".format(
config_flavour=config_flavour, dest_dir=dest_dir
)
Expand Down
3 changes: 1 addition & 2 deletions tests/legacy/unit/plugins/v2/test_kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -1294,11 +1294,10 @@ def _is_sub_array(array, sub_array):
branch=$(cut -d'.' -f 2- < ${KERNEL_SRC}/debian/debian.env)
baseconfigdir=${KERNEL_SRC}/debian.${branch}/config
archconfigdir=${KERNEL_SRC}/debian.${branch}/config/${DEB_ARCH}
commonconfig=${baseconfigdir}/config.common.ports
ubuntuconfig=${baseconfigdir}/config.common.ubuntu
archconfig=${archconfigdir}/config.common.${DEB_ARCH}
flavourconfig=${archconfigdir}/config.flavour.raspi
cat ${commonconfig} ${ubuntuconfig} ${archconfig} ${flavourconfig} \
cat ${ubuntuconfig} ${archconfig} ${flavourconfig} \
> ${SNAPCRAFT_PART_BUILD}/.config 2>/dev/null || true"""
),
"fi",
Expand Down
3 changes: 1 addition & 2 deletions tests/unit/parts/plugins/test_kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -1391,11 +1391,10 @@ def _is_sub_array(array, sub_array):
branch=$(cut -d'.' -f 2- < ${KERNEL_SRC}/debian/debian.env)
baseconfigdir=${KERNEL_SRC}/debian.${branch}/config
archconfigdir=${KERNEL_SRC}/debian.${branch}/config/${DEB_ARCH}
commonconfig=${baseconfigdir}/config.common.ports
ubuntuconfig=${baseconfigdir}/config.common.ubuntu
archconfig=${archconfigdir}/config.common.${DEB_ARCH}
flavourconfig=${archconfigdir}/config.flavour.raspi
cat ${commonconfig} ${ubuntuconfig} ${archconfig} ${flavourconfig} \
cat ${ubuntuconfig} ${archconfig} ${flavourconfig} \
> ${CRAFT_PART_BUILD}/.config 2>/dev/null || true"""
),
"fi",
Expand Down

0 comments on commit 70f9e9d

Please sign in to comment.