summaryrefslogtreecommitdiff
path: root/recipes-bsp
diff options
context:
space:
mode:
authorStefan Müller-Klieser <s.mueller-klieser@phytec.de>2015-11-10 10:03:14 +0100
committerStefan Müller-Klieser <s.mueller-klieser@phytec.de>2015-11-13 10:50:52 +0100
commit8061d0d9c3113de7a32a040a1650c20b8cec81c7 (patch)
tree9d173d1993e8b3f46a09a6f1f07ecc9c171d8f2c /recipes-bsp
parent43fb56a16ac251f20b209a729567d158f4271f74 (diff)
downloadmeta-phytec-8061d0d9c3113de7a32a040a1650c20b8cec81c7.tar.bz2
meta-phytec-8061d0d9c3113de7a32a040a1650c20b8cec81c7.zip
kconfig.bbclass: Add class
This class is responsible for handling projects build around kconfig. With this small start we can already get rid of the kconfig-frontends dependency. We will merge all related code in this class. Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
Diffstat (limited to 'recipes-bsp')
-rw-r--r--recipes-bsp/barebox/barebox.inc14
1 files changed, 5 insertions, 9 deletions
diff --git a/recipes-bsp/barebox/barebox.inc b/recipes-bsp/barebox/barebox.inc
index 5a7f9c1..413d832 100644
--- a/recipes-bsp/barebox/barebox.inc
+++ b/recipes-bsp/barebox/barebox.inc
@@ -1,10 +1,5 @@
# Copyright (C) 2014 Stefan Mueller-Klieser <s.mueller-klieser@phytec.de>
# PHYTEC Messtechnik GmbH
-#
-# TODO: see if there is some development towards moving all kconfig
-# funcionality into the kconfig-frontends package and adjust
-# the recipe accordingly.
-#
SUMMARY = "The Barebox Bootloader"
DESCRIPTION = "Barebox (formerly known as u-boot-v2) is a bootloader that \
inherits the best of U-Boot and the Linux kernel: The size and \
@@ -26,11 +21,12 @@ SRC_URI_append = " \
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
inherit kernel-arch cml1 deploy
-inherit kconfig-prepare-configure
+inherit kconfig
inherit kconfig-savedefconfig
+inherit kconfig-prepare-configure
# Increase INC_PR everytime the include file is changed.
-INC_PR = "r5"
+INC_PR = "r6"
PACKAGE_ARCH = "${MACHINE_ARCH}"
# verbose build 0/1
@@ -59,7 +55,7 @@ BAREBOX_BOARD_ENVDIR = "${WORKDIR}/boardenv"
do_configure_append() {
bbnote "Setting LOCALVERSION in .config to ${BAREBOX_LOCALVERSION}"
- kconfig-tweak --file "${B}/.config" --set-str "LOCALVERSION" "${BAREBOX_LOCALVERSION}"
+ kconfig_set LOCALVERSION "${BAREBOX_LOCALVERSION}"
# Add environment directories to .config if they exist
env_dirs=""
@@ -70,7 +66,7 @@ do_configure_append() {
done
if test ! -z "$env_dirs"; then
- kconfig-tweak --file "${B}/.config" --set-str "DEFAULT_ENVIRONMENT_PATH" "$env_dirs"
+ kconfig_set DEFAULT_ENVIRONMENT_PATH "\"$env_dirs\""
fi
}