[oe] [meta-handheld][PATCH] keymaps: edit script to reuse 2.6 kernel keymaps
Paul Eggleton
paul.eggleton at linux.intel.com
Sun Mar 25 22:53:09 UTC 2012
On Sunday 18 March 2012 01:13:55 Andrea Adami wrote:
> * The keymap.sh script installed by oe-core recipe has a check
> * for KERNEL_MAJMIN=`uname -r | cut -d '.' -f 1,2`
> * so the keymaps-2.6.map's are ignored when running 3.x kernels
> * Thus, we replace the suffix of the runtime kernel with "2.6" in the
> .bbappend. * Bump PR
>
> Signed-off-by: Andrea Adami <andrea.adami at gmail.com>
> ---
> recipes-bsp/keymaps/keymaps_1.0.bbappend | 7 ++++++-
> 1 files changed, 6 insertions(+), 1 deletions(-)
>
> diff --git a/recipes-bsp/keymaps/keymaps_1.0.bbappend
> b/recipes-bsp/keymaps/keymaps_1.0.bbappend index d3310c1..039b30c 100644
> --- a/recipes-bsp/keymaps/keymaps_1.0.bbappend
> +++ b/recipes-bsp/keymaps/keymaps_1.0.bbappend
> @@ -1,4 +1,4 @@
> -PRINC = "1"
> +PRINC = "2"
>
> FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
>
> @@ -20,6 +20,11 @@ SRC_URI_append_jornada6xx = "
> file://keymap-uk-620-660.map \ file://keymap-uk.map \
> "
>
> +# we still use keymap-2.6.map files
> +do_configure_append () {
> + sed -i -e 's/KERNEL_MAJMIN=.*$/KERNEL_MAJMIN="2.6"/'
> ${WORKDIR}/keymap.sh +}
> +
> do_install_append () {
> case ${MACHINE} in
> c7x0 | tosa | akita | spitz | collie | poodle | h2200 | h4000 |
> hx4700 | jornada6xx )
Merged to meta-handheld master, thanks.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
More information about the Openembedded-devel
mailing list