meta-digi: fix some issues in kernel config fragments
* pmic-battery package name * accelerometer config (missing INPUT_MISC) * battery config (missing POWER_SUPPLY) * rework/simplify bitbake recipe https://jira.digi.com/browse/DEL-354 Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
parent
383dda0a06
commit
9185fb24c9
|
|
@ -21,7 +21,7 @@ MACHINE_EXTRA_RRECOMMENDS += "kernel-module-mma7455l \"
|
|||
MACHINE_EXTRA_RRECOMMENDS += "kernel-module-scc2-driver \"
|
||||
MACHINE_EXTRA_RRECOMMENDS += "kernel-module-sahara \"
|
||||
MACHINE_EXTRA_RRECOMMENDS += "kernel-module-mt9v111-camera \"
|
||||
MACHINE_EXTRA_RRECOMMENDS += "kernel-module-pmic_battery \"
|
||||
MACHINE_EXTRA_RRECOMMENDS += "kernel-module-pmic-battery \"
|
||||
|
||||
module_autoload_mma7455l = "mma7455l"
|
||||
module_autoload_scc2_driver = "scc2_driver"
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
CONFIG_INPUT_MISC=y
|
||||
CONFIG_INPUT_MMA7455L=m
|
||||
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
CONFIG_POWER_SUPPLY=y
|
||||
CONFIG_MXC_MC13892_BATTERY=m
|
||||
|
|
@ -15,4 +15,3 @@ CONFIG_MXC_CAMERA_MICRON111_2=m
|
|||
CONFIG_MXC_IPU_PRP_VF_SDC=y
|
||||
CONFIG_MXC_IPU_PRP_ENC=y
|
||||
CONFIG_MXC_IPU_CSI_ENC=y
|
||||
|
||||
|
|
@ -3,4 +3,3 @@ CONFIG_MXC_SECURITY_SCC2=m
|
|||
CONFIG_MXC_SAHARA=m
|
||||
# CONFIG_MXC_SAHARA_USER_MODE is not set
|
||||
# CONFIG_MXC_SAHARA_POLL_MODE is not set
|
||||
|
||||
|
|
@ -4,32 +4,28 @@ include linux-del.inc
|
|||
|
||||
PR = "${INC_PR}.0"
|
||||
|
||||
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}_${PV}"
|
||||
SRCREV = "${AUTOREV}"
|
||||
|
||||
SRCREV_mx5 = "${AUTOREV}"
|
||||
LOCALVERSION_mx5 = "mx5+master"
|
||||
|
||||
KERNEL_CFG_FRAGS_mx5 = "file://config-accel-module.cfg file://config-sahara-module.cfg file://config-camera-module.cfg"
|
||||
KERNEL_CFG_FRAGS_ccimx51js_mx5 = "file://config-battery-module.cfg"
|
||||
SRC_URI = "${DIGI_LOG_GIT}linux-2.6.git;protocol=git;branch=refs/heads/master \
|
||||
file://defconfig \
|
||||
${KERNEL_CFG_FRAGS} \
|
||||
"
|
||||
# Override 'ccardimx28js' SRC_URI so the 'SRC_URI_append_mxs' patches
|
||||
# from FSL layer are *not* applied
|
||||
SRCREV_mxs = "${AUTOREV}"
|
||||
LOCALVERSION_mxs = "mxs+master"
|
||||
KERNEL_CFG_FRAGS_ccardimx28js_mxs = "${@base_contains('DISTRO_FEATURES', 'x11', 'file://config-fb.cfg file://config-touch.cfg', '', d)}"
|
||||
KERNEL_CFG_FRAGS_ccardimx28js_mxs += "${@base_contains('MACHINE_FEATURES', 'alsa', 'file://config-sound.cfg', '', d)}"
|
||||
SRC_URI_ccardimx28js_mxs = "${DIGI_LOG_GIT}linux-2.6.git;protocol=git;branch=refs/heads/master \
|
||||
file://defconfig \
|
||||
${KERNEL_CFG_FRAGS} \
|
||||
"
|
||||
SRCREV_cpx2_mxs = "${AUTOREV}"
|
||||
LOCALVERSION_cpx2_mxs = "mxs+gateways_master"
|
||||
SRC_URI_cpx2_mxs = "${DIGI_LOG_GIT}linux-2.6.git;protocol=git;branch=refs/heads/gateways/master \
|
||||
file://defconfig \
|
||||
"
|
||||
|
||||
KERNEL_CFG_FRAGS ?= ""
|
||||
KERNEL_CFG_FRAGS_append_mx5 = " file://config-accel-module.cfg file://config-sahara-module.cfg file://config-camera-module.cfg"
|
||||
KERNEL_CFG_FRAGS_append_ccimx51js = " file://config-battery-module.cfg"
|
||||
KERNEL_CFG_FRAGS_append_ccardimx28js = " ${@base_contains('DISTRO_FEATURES', 'x11', 'file://config-fb.cfg file://config-touch.cfg', '', d)}"
|
||||
KERNEL_CFG_FRAGS_append_ccardimx28js = " ${@base_contains('MACHINE_FEATURES', 'alsa', 'file://config-sound.cfg', '', d)}"
|
||||
|
||||
SRC_URI = " \
|
||||
${DIGI_LOG_GIT}linux-2.6.git;protocol=git;branch=refs/heads/master \
|
||||
file://defconfig \
|
||||
${KERNEL_CFG_FRAGS} \
|
||||
"
|
||||
|
||||
SRC_URI_cpx2 = " \
|
||||
${DIGI_LOG_GIT}linux-2.6.git;protocol=git;branch=refs/heads/gateways/master \
|
||||
file://defconfig \
|
||||
"
|
||||
|
||||
FILES_kernel-image += "/boot/config*"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
CONFIG_MXC_MC13892_BATTERY=m
|
||||
CONFIG_MXC_MC13892_BATTERY_DEFAULT_CHARGING_CURRENT=40
|
||||
|
||||
|
|
@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425
|
|||
|
||||
PR = "r0"
|
||||
|
||||
RDEPENDS_${PN} = "kernel-module-pmic_battery"
|
||||
RDEPENDS_${PN} = "kernel-module-pmic-battery"
|
||||
|
||||
SRC_URI = "file://battery_test"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue