aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-bsp/keymaps/keymaps_%.bbappend
blob: 03ce95b36b762fff1ef8125ac99298be7f8ba874 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"

SRC_URI:append:c7x0         = " file://keymap-2.6.map"
SRC_URI:append:tosa         = " file://keymap-2.6.map"
SRC_URI:append:akita        = " file://keymap-2.6.map"
SRC_URI:append:spitz        = " file://keymap-2.6.map"
SRC_URI:append:collie       = " file://keymap-2.6.map"
SRC_URI:append:poodle       = " file://keymap-2.6.map"
SRC_URI:append:hx4700       = " file://keymap-2.6.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 | hx4700 )
            install -d ${D}${sysconfdir}
            install -m 0644 ${WORKDIR}/keymap-*.map	${D}${sysconfdir}
            ;;
        *)
            ;;
    esac
}