[OE-core] [RFC] keymaps and kernel version

Koen Kooi koen at dominion.thruhere.net
Mon Mar 5 13:16:57 UTC 2012


Op 5 mrt. 2012, om 14:12 heeft Andrea Adami het volgende geschreven:

> On Sun, Mar 4, 2012 at 12:40 AM, Andrea Adami <andrea.adami at gmail.com> wrote:
>> Hi,
>> while testing some new kernels I found out a broken keymap.
>> After short research I could identify the cause in
>> recipes-bsp/keymaps/files/keymap.sh:
>> ...
>> KERNEL_MAJMIN=`uname -r | cut -d '.' -f 1,2`
>> if [ -e /etc/keymap-$KERNEL_MAJMIN.map ]; then
>>    loadkeys /etc/keymap-$KERNEL_MAJMIN.map
>> fi
>> ...
>> 
>> $ uname -r | cut -d '.' -f 1,2
>> 3.2
>> 
>> 
>> I realized we are still using some old keymap-2.6.map and this doesn't
>> match with KERNEL_MAJMIN.
>> Now, renaming the keymaps to 3.2 would be only a band-aid,  3.3 is coming.
>> 
>> Maybe we should check for keymap-3.map, i.e.
>> 
>>  uname -r | cut -d '.' -f 1,1
>> 
>>  or embed the machine name instead.
>> 
>> Regards
>> 
>> Andrea
> 
> Actually this all sounds remnant of linux 2.4 vs. 2.6 times.
> 
> Probably today we can just set:
> ...
> if [ -e /etc/keymap.map ]; then
> ...
> 
> and the BSP layers will have to rename the overrides only once.

Or just drop it completely and let udev handle it?

regards,

Koen



More information about the Openembedded-core mailing list