diff options
Diffstat (limited to 'recipes-kernel/linux/linux-cfa.inc')
-rw-r--r-- | recipes-kernel/linux/linux-cfa.inc | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-cfa.inc b/recipes-kernel/linux/linux-cfa.inc new file mode 100644 index 0000000..96f934c --- /dev/null +++ b/recipes-kernel/linux/linux-cfa.inc | |||
@@ -0,0 +1,29 @@ | |||
1 | SUMMARY = "Linux kernel for Crystalfontz boards" | ||
2 | SECTION = "kernel" | ||
3 | LICENSE = "GPLv2" | ||
4 | |||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" | ||
6 | |||
7 | inherit kernel | ||
8 | require recipes-kernel/linux/linux-dtb.inc | ||
9 | |||
10 | SRC_URI = "git://github.com/crystalfontz/cfa_10036_kernel;branch=${SRCBRANCH} \ | ||
11 | file://defconfig" | ||
12 | |||
13 | S = "${WORKDIR}/git" | ||
14 | |||
15 | # create symlinks that are the defaults of barebox | ||
16 | pkg_postinst_kernel-devicetree_append () { | ||
17 | for DTB_FILE in ${KERNEL_DEVICETREE} | ||
18 | do | ||
19 | DTB_BASE_NAME=`basename ${DTB_FILE} | awk -F "." '{print $1}'` | ||
20 | DTB_BOARD_NAME=`echo ${DTB_BASE_NAME} | awk -F "-" '{print $2}'` | ||
21 | DTB_SYMLINK_NAME=`echo ${KERNEL_IMAGE_SYMLINK_NAME} | sed "s/${MACHINE}/${DTB_BASE_NAME}/g"` | ||
22 | update-alternatives --install /${KERNEL_IMAGEDEST}/oftree-${DTB_BOARD_NAME} oftree-${DTB_BOARD_NAME} devicetree-${DTB_SYMLINK_NAME}.dtb ${KERNEL_PRIORITY} || true | ||
23 | done | ||
24 | } | ||
25 | |||
26 | pkg_postinst_kernel-image_append () { | ||
27 | update-alternatives --install /${KERNEL_IMAGEDEST}/${KERNEL_IMAGETYPE}-cfa10036 ${KERNEL_IMAGETYPE}-cfa10036 ${KERNEL_IMAGETYPE}-${KERNEL_VERSION} ${KERNEL_PRIORITY} || true | ||
28 | } | ||
29 | |||