aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-bsp/keymaps/keymaps_%.bbappend
blob: e9f0159690d4c95cb9080da2a1368433b60500d1 (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
}