diff options
| author | cajun-rat <p@beta16.co.uk> | 2017-04-04 17:31:06 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-04 17:31:06 +0200 |
| commit | 82d51fbf0afe8276d5c418a8cdcc0f1342b6a9ba (patch) | |
| tree | bf48a61ccf3d3e65db4705e975366589a915c615 | |
| parent | 6cdd554302ce7b1c09546e99a3ac7f05f80cbb08 (diff) | |
| parent | 34770e853734d7c29420ffa52b322fe9ca91d70d (diff) | |
| download | meta-updater-82d51fbf0afe8276d5c418a8cdcc0f1342b6a9ba.tar.gz | |
Merge pull request #7 from advancedtelematic/feat/syncagl
Syncronize with newer meta-raspberrypi (pulled from AGL)
8 files changed, 290 insertions, 50 deletions
diff --git a/meta-sota-raspberrypi/recipes-bsp/bootfiles/rpi-config_git.bbappend b/meta-sota-raspberrypi/recipes-bsp/bootfiles/rpi-config_git.bbappend index ff14d36..9222fd5 100644 --- a/meta-sota-raspberrypi/recipes-bsp/bootfiles/rpi-config_git.bbappend +++ b/meta-sota-raspberrypi/recipes-bsp/bootfiles/rpi-config_git.bbappend | |||
| @@ -1,6 +1,14 @@ | |||
| 1 | DISABLE_OVERSCAN = "1" | 1 | DISABLE_OVERSCAN = "1" |
| 2 | 2 | ||
| 3 | do_deploy_append() { | 3 | do_deploy_append() { |
| 4 | if [ "${ENABLE_CMA}" = "1" ] && [ -n "${CMA_LWM}" ]; then | ||
| 5 | sed -i '/#cma_lwm/ c\cma_lwm=${CMA_LWM}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt | ||
| 6 | fi | ||
| 7 | |||
| 8 | if [ "${ENABLE_CMA}" = "1" ] && [ -n "${CMA_HWM}" ]; then | ||
| 9 | sed -i '/#cma_hwm/ c\cma_hwm=${CMA_HWM}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt | ||
| 10 | fi | ||
| 11 | |||
| 4 | echo "avoid_warnings=2" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt | 12 | echo "avoid_warnings=2" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt |
| 5 | echo "mask_gpu_interrupt0=0x400" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt | 13 | echo "mask_gpu_interrupt0=0x400" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt |
| 6 | echo "dtoverlay=vc4-kms-v3d-overlay,cma-256" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt | 14 | echo "dtoverlay=vc4-kms-v3d-overlay,cma-256" >> ${DEPLOYDIR}/bcm2835-bootfiles/config.txt |
diff --git a/meta-sota-raspberrypi/recipes-kernel/linux/linux-raspberrypi/0001-Smack-File-receive-for-sockets.patch b/meta-sota-raspberrypi/recipes-kernel/linux/linux-raspberrypi/0001-Smack-File-receive-for-sockets.patch new file mode 100644 index 0000000..4021e5d --- /dev/null +++ b/meta-sota-raspberrypi/recipes-kernel/linux/linux-raspberrypi/0001-Smack-File-receive-for-sockets.patch | |||
| @@ -0,0 +1,65 @@ | |||
| 1 | From 2b206c36b16e72cfe41cd22448d8527359ffd962 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Casey Schaufler <casey@schaufler-ca.com> | ||
| 3 | Date: Mon, 7 Dec 2015 14:34:32 -0800 | ||
| 4 | Subject: [PATCH 1/4] Smack: File receive for sockets | ||
| 5 | |||
| 6 | The existing file receive hook checks for access on | ||
| 7 | the file inode even for UDS. This is not right, as | ||
| 8 | the inode is not used by Smack to make access checks | ||
| 9 | for sockets. This change checks for an appropriate | ||
| 10 | access relationship between the receiving (current) | ||
| 11 | process and the socket. If the process can't write | ||
| 12 | to the socket's send label or the socket's receive | ||
| 13 | label can't write to the process fail. | ||
| 14 | |||
| 15 | This will allow the legitimate cases, where the | ||
| 16 | socket sender and socket receiver can freely communicate. | ||
| 17 | Only strangly set socket labels should cause a problem. | ||
| 18 | |||
| 19 | Signed-off-by: Casey Schaufler <casey@schaufler-ca.com> | ||
| 20 | --- | ||
| 21 | security/smack/smack_lsm.c | 22 ++++++++++++++++++++++ | ||
| 22 | 1 file changed, 22 insertions(+) | ||
| 23 | |||
| 24 | diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c | ||
| 25 | index ff81026..b20ef06 100644 | ||
| 26 | --- a/security/smack/smack_lsm.c | ||
| 27 | +++ b/security/smack/smack_lsm.c | ||
| 28 | @@ -1860,12 +1860,34 @@ static int smack_file_receive(struct file *file) | ||
| 29 | int may = 0; | ||
| 30 | struct smk_audit_info ad; | ||
| 31 | struct inode *inode = file_inode(file); | ||
| 32 | + struct socket *sock; | ||
| 33 | + struct task_smack *tsp; | ||
| 34 | + struct socket_smack *ssp; | ||
| 35 | |||
| 36 | if (unlikely(IS_PRIVATE(inode))) | ||
| 37 | return 0; | ||
| 38 | |||
| 39 | smk_ad_init(&ad, __func__, LSM_AUDIT_DATA_PATH); | ||
| 40 | smk_ad_setfield_u_fs_path(&ad, file->f_path); | ||
| 41 | + | ||
| 42 | + if (S_ISSOCK(inode->i_mode)) { | ||
| 43 | + sock = SOCKET_I(inode); | ||
| 44 | + ssp = sock->sk->sk_security; | ||
| 45 | + tsp = current_security(); | ||
| 46 | + /* | ||
| 47 | + * If the receiving process can't write to the | ||
| 48 | + * passed socket or if the passed socket can't | ||
| 49 | + * write to the receiving process don't accept | ||
| 50 | + * the passed socket. | ||
| 51 | + */ | ||
| 52 | + rc = smk_access(tsp->smk_task, ssp->smk_out, MAY_WRITE, &ad); | ||
| 53 | + rc = smk_bu_file(file, may, rc); | ||
| 54 | + if (rc < 0) | ||
| 55 | + return rc; | ||
| 56 | + rc = smk_access(ssp->smk_in, tsp->smk_task, MAY_WRITE, &ad); | ||
| 57 | + rc = smk_bu_file(file, may, rc); | ||
| 58 | + return rc; | ||
| 59 | + } | ||
| 60 | /* | ||
| 61 | * This code relies on bitmasks. | ||
| 62 | */ | ||
| 63 | -- | ||
| 64 | 2.7.4 | ||
| 65 | |||
diff --git a/meta-sota-raspberrypi/recipes-kernel/linux/linux-raspberrypi/0002-smack-fix-cache-of-access-labels.patch b/meta-sota-raspberrypi/recipes-kernel/linux/linux-raspberrypi/0002-smack-fix-cache-of-access-labels.patch new file mode 100644 index 0000000..c516f3a --- /dev/null +++ b/meta-sota-raspberrypi/recipes-kernel/linux/linux-raspberrypi/0002-smack-fix-cache-of-access-labels.patch | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | From 99267706991ab84bd44ceaea9a7ec886bbdd58e0 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: =?UTF-8?q?Jos=C3=A9=20Bollo?= <jobol@nonadev.net> | ||
| 3 | Date: Tue, 12 Jan 2016 21:23:40 +0100 | ||
| 4 | Subject: [PATCH 2/4] smack: fix cache of access labels | ||
| 5 | MIME-Version: 1.0 | ||
| 6 | Content-Type: text/plain; charset=UTF-8 | ||
| 7 | Content-Transfer-Encoding: 8bit | ||
| 8 | |||
| 9 | Before this commit, removing the access property of | ||
| 10 | a file, aka, the extended attribute security.SMACK64 | ||
| 11 | was not effictive until the cache had been cleaned. | ||
| 12 | |||
| 13 | This patch fixes that problem. | ||
| 14 | |||
| 15 | Signed-off-by: José Bollo <jobol@nonadev.net> | ||
| 16 | Acked-by: Casey Schaufler <casey@schaufler-ca.com> | ||
| 17 | --- | ||
| 18 | security/smack/smack_lsm.c | 8 ++++++-- | ||
| 19 | 1 file changed, 6 insertions(+), 2 deletions(-) | ||
| 20 | |||
| 21 | diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c | ||
| 22 | index b20ef06..b2bcb14 100644 | ||
| 23 | --- a/security/smack/smack_lsm.c | ||
| 24 | +++ b/security/smack/smack_lsm.c | ||
| 25 | @@ -1444,9 +1444,13 @@ static int smack_inode_removexattr(struct dentry *dentry, const char *name) | ||
| 26 | * Don't do anything special for these. | ||
| 27 | * XATTR_NAME_SMACKIPIN | ||
| 28 | * XATTR_NAME_SMACKIPOUT | ||
| 29 | - * XATTR_NAME_SMACKEXEC | ||
| 30 | */ | ||
| 31 | - if (strcmp(name, XATTR_NAME_SMACK) == 0) | ||
| 32 | + if (strcmp(name, XATTR_NAME_SMACK) == 0) { | ||
| 33 | + struct super_block *sbp = d_backing_inode(dentry)->i_sb; | ||
| 34 | + struct superblock_smack *sbsp = sbp->s_security; | ||
| 35 | + | ||
| 36 | + isp->smk_inode = sbsp->smk_default; | ||
| 37 | + } else if (strcmp(name, XATTR_NAME_SMACKEXEC) == 0) | ||
| 38 | isp->smk_task = NULL; | ||
| 39 | else if (strcmp(name, XATTR_NAME_SMACKMMAP) == 0) | ||
| 40 | isp->smk_mmap = NULL; | ||
| 41 | -- | ||
| 42 | 2.7.4 | ||
| 43 | |||
diff --git a/meta-sota-raspberrypi/recipes-kernel/linux/linux-raspberrypi/0003-Smack-ignore-null-signal-in-smack_task_kill.patch b/meta-sota-raspberrypi/recipes-kernel/linux/linux-raspberrypi/0003-Smack-ignore-null-signal-in-smack_task_kill.patch new file mode 100644 index 0000000..c9180bb --- /dev/null +++ b/meta-sota-raspberrypi/recipes-kernel/linux/linux-raspberrypi/0003-Smack-ignore-null-signal-in-smack_task_kill.patch | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | From ec4eb03af07b0fbc330aecca6ac4ebd6accd8825 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Rafal Krypa <r.krypa@samsung.com> | ||
| 3 | Date: Mon, 4 Apr 2016 11:14:53 +0200 | ||
| 4 | Subject: [PATCH 3/4] Smack: ignore null signal in smack_task_kill | ||
| 5 | |||
| 6 | Kill with signal number 0 is commonly used for checking PID existence. | ||
| 7 | Smack treated such cases like any other kills, although no signal is | ||
| 8 | actually delivered when sig == 0. | ||
| 9 | |||
| 10 | Checking permissions when sig == 0 didn't prevent an unprivileged caller | ||
| 11 | from learning whether PID exists or not. When it existed, kernel returned | ||
| 12 | EPERM, when it didn't - ESRCH. The only effect of policy check in such | ||
| 13 | case is noise in audit logs. | ||
| 14 | |||
| 15 | This change lets Smack silently ignore kill() invocations with sig == 0. | ||
| 16 | |||
| 17 | Signed-off-by: Rafal Krypa <r.krypa@samsung.com> | ||
| 18 | Acked-by: Casey Schaufler <casey@schaufler-ca.com> | ||
| 19 | --- | ||
| 20 | security/smack/smack_lsm.c | 3 +++ | ||
| 21 | 1 file changed, 3 insertions(+) | ||
| 22 | |||
| 23 | diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c | ||
| 24 | index b2bcb14..cf8a93f 100644 | ||
| 25 | --- a/security/smack/smack_lsm.c | ||
| 26 | +++ b/security/smack/smack_lsm.c | ||
| 27 | @@ -2239,6 +2239,9 @@ static int smack_task_kill(struct task_struct *p, struct siginfo *info, | ||
| 28 | struct smack_known *tkp = smk_of_task_struct(p); | ||
| 29 | int rc; | ||
| 30 | |||
| 31 | + if (!sig) | ||
| 32 | + return 0; /* null signal; existence test */ | ||
| 33 | + | ||
| 34 | smk_ad_init(&ad, __func__, LSM_AUDIT_DATA_TASK); | ||
| 35 | smk_ad_setfield_u_tsk(&ad, p); | ||
| 36 | /* | ||
| 37 | -- | ||
| 38 | 2.7.4 | ||
| 39 | |||
diff --git a/meta-sota-raspberrypi/recipes-kernel/linux/linux-raspberrypi/0004-Smack-Assign-smack_known_web-label-for-kernel-thread.patch b/meta-sota-raspberrypi/recipes-kernel/linux/linux-raspberrypi/0004-Smack-Assign-smack_known_web-label-for-kernel-thread.patch new file mode 100644 index 0000000..a1eeac3 --- /dev/null +++ b/meta-sota-raspberrypi/recipes-kernel/linux/linux-raspberrypi/0004-Smack-Assign-smack_known_web-label-for-kernel-thread.patch | |||
| @@ -0,0 +1,49 @@ | |||
| 1 | From c8bbb0f916de54610513e376070aea531af19dd6 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: jooseong lee <jooseong.lee@samsung.com> | ||
| 3 | Date: Thu, 3 Nov 2016 10:55:43 +0100 | ||
| 4 | Subject: [PATCH 4/4] Smack: Assign smack_known_web label for kernel thread's | ||
| 5 | MIME-Version: 1.0 | ||
| 6 | Content-Type: text/plain; charset=UTF-8 | ||
| 7 | Content-Transfer-Encoding: 8bit | ||
| 8 | |||
| 9 | Assign smack_known_web label for kernel thread's socket in the sk_alloc_security hook | ||
| 10 | |||
| 11 | Creating struct sock by sk_alloc function in various kernel subsystems | ||
| 12 | like bluetooth dosen't call smack_socket_post_create(). In such case, | ||
| 13 | received sock label is the floor('_') label and makes access deny. | ||
| 14 | |||
| 15 | Refers-to: https://review.tizen.org/gerrit/#/c/80717/4 | ||
| 16 | |||
| 17 | Change-Id: I2e5c9359bfede84a988fd4d4d74cdb9dfdfc52d8 | ||
| 18 | Signed-off-by: jooseong lee <jooseong.lee@samsung.com> | ||
| 19 | Signed-off-by: José Bollo <jose.bollo@iot.bzh> | ||
| 20 | --- | ||
| 21 | security/smack/smack_lsm.c | 12 ++++++++++-- | ||
| 22 | 1 file changed, 10 insertions(+), 2 deletions(-) | ||
| 23 | |||
| 24 | diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c | ||
| 25 | index cf8a93f..21651bc 100644 | ||
| 26 | --- a/security/smack/smack_lsm.c | ||
| 27 | +++ b/security/smack/smack_lsm.c | ||
| 28 | @@ -2321,8 +2321,16 @@ static int smack_sk_alloc_security(struct sock *sk, int family, gfp_t gfp_flags) | ||
| 29 | if (ssp == NULL) | ||
| 30 | return -ENOMEM; | ||
| 31 | |||
| 32 | - ssp->smk_in = skp; | ||
| 33 | - ssp->smk_out = skp; | ||
| 34 | + /* | ||
| 35 | + * Sockets created by kernel threads receive web label. | ||
| 36 | + */ | ||
| 37 | + if (unlikely(current->flags & PF_KTHREAD)) { | ||
| 38 | + ssp->smk_in = &smack_known_web; | ||
| 39 | + ssp->smk_out = &smack_known_web; | ||
| 40 | + } else { | ||
| 41 | + ssp->smk_in = skp; | ||
| 42 | + ssp->smk_out = skp; | ||
| 43 | + } | ||
| 44 | ssp->smk_packet = NULL; | ||
| 45 | |||
| 46 | sk->sk_security = ssp; | ||
| 47 | -- | ||
| 48 | 2.7.4 | ||
| 49 | |||
diff --git a/meta-sota-raspberrypi/recipes-kernel/linux/linux-raspberrypi_%.bbappend b/meta-sota-raspberrypi/recipes-kernel/linux/linux-raspberrypi_%.bbappend new file mode 100644 index 0000000..1db6d42 --- /dev/null +++ b/meta-sota-raspberrypi/recipes-kernel/linux/linux-raspberrypi_%.bbappend | |||
| @@ -0,0 +1,72 @@ | |||
| 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:" | ||
| 2 | |||
| 3 | SRC_URI_append = "\ | ||
| 4 | ${@base_conditional('USE_FAYTECH_MONITOR', '1', 'file://0002-faytech-fix-rpi.patch', '', d)} \ | ||
| 5 | " | ||
| 6 | |||
| 7 | do_configure_append_smack() { | ||
| 8 | # SMACK and Co | ||
| 9 | kernel_configure_variable IP_NF_SECURITY m | ||
| 10 | kernel_configure_variable IP6_NF_SECURITY m | ||
| 11 | kernel_configure_variable EXT2_FS_SECURITY y | ||
| 12 | kernel_configure_variable EXT3_FS_SECURITY y | ||
| 13 | kernel_configure_variable EXT4_FS_SECURITY y | ||
| 14 | kernel_configure_variable SECURITY y | ||
| 15 | kernel_configure_variable SECURITY_SMACK y | ||
| 16 | kernel_configure_variable TMPFS_XATTR y | ||
| 17 | kernel_configure_variable DEFAULT_SECURITY "smack" | ||
| 18 | kernel_configure_variable DEFAULT_SECURITY_SMACK y | ||
| 19 | kernel_configure_variable FANOTIFY_ACCESS_PERMISSIONS y | ||
| 20 | } | ||
| 21 | |||
| 22 | do_configure_append_netboot() { | ||
| 23 | # NBD for netboot | ||
| 24 | kernel_configure_variable BLK_DEV_NBD y | ||
| 25 | # ramblk for inird | ||
| 26 | kernel_configure_variable BLK_DEV_RAM y | ||
| 27 | } | ||
| 28 | |||
| 29 | do_configure_append_sota() { | ||
| 30 | # ramblk for inird | ||
| 31 | kernel_configure_variable BLK_DEV_RAM y | ||
| 32 | } | ||
| 33 | |||
| 34 | do_configure_append() { | ||
| 35 | |||
| 36 | # VC4 Wayland/Weston | ||
| 37 | kernel_configure_variable I2C_BCM2835 y | ||
| 38 | kernel_configure_variable DRM y | ||
| 39 | kernel_configure_variable DRM_PANEL_RASPBERRYPI_TOUCHSCREEN y | ||
| 40 | kernel_configure_variable DRM_VC4 y | ||
| 41 | kernel_configure_variable FB_BCM2708 n | ||
| 42 | |||
| 43 | # Enable support for TP-Link TL-W722N USB Wifi adapter | ||
| 44 | kernel_configure_variable CONFIG_ATH_CARDS m | ||
| 45 | kernel_configure_variable CONFIG_ATH9K_HTC m | ||
| 46 | |||
| 47 | # Enable support for RTLSDR | ||
| 48 | kernel_configure_variable CONFIG_MEDIA_USB_SUPPORT y | ||
| 49 | kernel_configure_variable CONFIG_MEDIA_DIGITAL_TV_SUPPORT y | ||
| 50 | kernel_configure_variable CONFIG_DVB_USB_V2 m | ||
| 51 | kernel_configure_variable CONFIG_DVB_USB_RTL28XXU m | ||
| 52 | |||
| 53 | # KEEP until fixed upstream: | ||
| 54 | # Keep this the last line | ||
| 55 | # Remove all modified configs and add the rest to .config | ||
| 56 | sed -e "${CONF_SED_SCRIPT}" < '${WORKDIR}/defconfig' >> '${B}/.config' | ||
| 57 | |||
| 58 | yes '' | oe_runmake oldconfig | ||
| 59 | kernel_do_configure | ||
| 60 | } | ||
| 61 | |||
| 62 | CMDLINE_DEBUG = "" | ||
| 63 | CMDLINE_append = " usbhid.mousepoll=0" | ||
| 64 | |||
| 65 | # Add options to allow CMA to operate | ||
| 66 | CMDLINE_append = ' ${@base_conditional("ENABLE_CMA", "1", "coherent_pool=6M smsc95xx.turbo_mode=N", "", d)}' | ||
| 67 | |||
| 68 | KERNEL_MODULE_AUTOLOAD += "snd-bcm2835" | ||
| 69 | KERNEL_MODULE_AUTOLOAD += "hid-multitouch" | ||
| 70 | |||
| 71 | RDEPENDS_${PN} += "kernel-module-snd-bcm2835" | ||
| 72 | PACKAGES += "kernel-module-snd-bcm2835" | ||
diff --git a/meta-sota-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.4.bbappend b/meta-sota-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.4.bbappend index 0a0ddf8..9879c6f 100644 --- a/meta-sota-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.4.bbappend +++ b/meta-sota-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.4.bbappend | |||
| @@ -1,51 +1,9 @@ | |||
| 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:" | 1 | #------------------------------------------------------------------------- |
| 2 | 2 | # smack patches for handling bluetooth | |
| 3 | LINUX_VERSION = "4.4.16" | 3 | |
| 4 | 4 | SRC_URI_append_smack = "\ | |
| 5 | SRCREV = "26550dcfb86b0308a99f726abbfb55abb1b0f78c" | 5 | file://0001-Smack-File-receive-for-sockets.patch \ |
| 6 | 6 | file://0002-smack-fix-cache-of-access-labels.patch \ | |
| 7 | SRC_URI_append = "\ | 7 | file://0003-Smack-ignore-null-signal-in-smack_task_kill.patch \ |
| 8 | ${@base_conditional('USE_FAYTECH_MONITOR', '1', 'file://0002-faytech-fix-rpi.patch', '', d)} \ | 8 | file://0004-Smack-Assign-smack_known_web-label-for-kernel-thread.patch \ |
| 9 | " | 9 | " |
| 10 | |||
| 11 | do_configure_append_sota() { | ||
| 12 | # ramblk for inird | ||
| 13 | kernel_configure_variable BLK_DEV_RAM y | ||
| 14 | } | ||
| 15 | |||
| 16 | do_configure_append() { | ||
| 17 | |||
| 18 | # VC4 Wayland/Weston | ||
| 19 | kernel_configure_variable I2C_BCM2835 y | ||
| 20 | kernel_configure_variable DRM y | ||
| 21 | kernel_configure_variable DRM_PANEL_RASPBERRYPI_TOUCHSCREEN y | ||
| 22 | kernel_configure_variable DRM_VC4 y | ||
| 23 | kernel_configure_variable FB_BCM2708 n | ||
| 24 | |||
| 25 | # Enable support for TP-Link TL-W722N USB Wifi adapter | ||
| 26 | kernel_configure_variable CONFIG_ATH_CARDS m | ||
| 27 | kernel_configure_variable CONFIG_ATH9K_HTC m | ||
| 28 | |||
| 29 | # Enable support for RTLSDR | ||
| 30 | kernel_configure_variable CONFIG_MEDIA_USB_SUPPORT y | ||
| 31 | kernel_configure_variable CONFIG_MEDIA_DIGITAL_TV_SUPPORT y | ||
| 32 | kernel_configure_variable CONFIG_DVB_USB_V2 m | ||
| 33 | kernel_configure_variable CONFIG_DVB_USB_RTL28XXU m | ||
| 34 | |||
| 35 | # KEEP until fixed upstream: | ||
| 36 | # Keep this the last line | ||
| 37 | # Remove all modified configs and add the rest to .config | ||
| 38 | sed -e "${CONF_SED_SCRIPT}" < '${WORKDIR}/defconfig' >> '${B}/.config' | ||
| 39 | |||
| 40 | yes '' | oe_runmake oldconfig | ||
| 41 | kernel_do_configure | ||
| 42 | } | ||
| 43 | |||
| 44 | |||
| 45 | CMDLINE_append = " usbhid.mousepoll=0" | ||
| 46 | |||
| 47 | KERNEL_MODULE_AUTOLOAD += "snd-bcm2835" | ||
| 48 | KERNEL_MODULE_AUTOLOAD += "hid-multitouch" | ||
| 49 | |||
| 50 | RDEPENDS_${PN} += "kernel-module-snd-bcm2835" | ||
| 51 | PACKAGES += "kernel-module-snd-bcm2835" | ||
diff --git a/meta-sota-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.9.bbappend b/meta-sota-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.9.bbappend new file mode 100644 index 0000000..206a8d0 --- /dev/null +++ b/meta-sota-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.9.bbappend | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | #------------------------------------------------------------------------- | ||
| 2 | # smack patches for handling bluetooth | ||
| 3 | |||
| 4 | SRC_URI_append_smack = "\ | ||
| 5 | file://0004-Smack-Assign-smack_known_web-label-for-kernel-thread.patch \ | ||
| 6 | " | ||
