Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 680500 Details for
Bug 762766
sys-kernel/raspberrypi-sources-5.4.79_p20201201[symlink]: wrong symlink in /usr/src
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
raspberrypi-sources.diff
raspberrypi-sources.diff (text/plain), 2.45 KB, created by
ShorTie
on 2021-01-01 12:14:49 UTC
(
hide
)
Description:
raspberrypi-sources.diff
Filename:
MIME Type:
Creator:
ShorTie
Created:
2021-01-01 12:14:49 UTC
Size:
2.45 KB
patch
obsolete
>--- /var/db/repos/gentoo/sys-kernel/raspberrypi-sources/raspberrypi-sources-5.4.79_p20201201.ebuild.orig 2021-01-01 04:22:03.000000000 -0500 >+++ /var/db/repos/gentoo/sys-kernel/raspberrypi-sources/raspberrypi-sources-5.4.79_p20201201.ebuild 2021-01-01 06:15:05.000000000 -0500 >@@ -1,26 +1,78 @@ > # Copyright 1999-2020 Gentoo Authors > # Distributed under the terms of the GNU General Public License v2 > >-EAPI=6 >+# Note: BOARD variable can be passed by /etc/portage/make.conf, >+# like BOARD="pi4-64", otherwise `cat /proc/cpuinfo` will be used. > >+EAPI=6 > ETYPE=sources >-K_DEFCONFIG="bcmrpi_defconfig" >-K_SECURITY_UNSUPPORTED=1 >-EXTRAVERSION="-${PN}/-*" > > inherit kernel-2 eapi7-ver > detect_version > detect_arch > > MY_PV=$(ver_cut 4-) >-MY_PV=${MY_PV/p/} >+KV_FULL="raspberrypi-kernel_1.${MY_PV/p/}-1" > DESCRIPTION="Raspberry Pi kernel sources" > HOMEPAGE="https://github.com/raspberrypi/linux" >-SRC_URI="https://github.com/raspberrypi/linux/archive/raspberrypi-kernel_1.${MY_PV}-1.tar.gz" >-S="${WORKDIR}/linux-raspberrypi-kernel_1.${MY_PV}-1" >+SRC_URI="https://github.com/raspberrypi/linux/archive/${KV_FULL}.tar.gz" >+S="${WORKDIR}/linux-${KV_FULL}" > >-KEYWORDS="~arm ~arm64" >+KEYWORDS="arm ~arm arm64 ~arm64" > > src_unpack() { > default >+ # Setup xmakeopts and cd into sourcetree. >+ echo ">>> env_setup_xmakeopts" >+ env_setup_xmakeopts >+ cd "${S}" >+} >+ >+src_prepare() { >+ default >+ echo ">>> make mrproper" >+ make mrproper >+} >+ >+src_configure() { >+ default >+ if [[ ! -v BOARD ]]; then >+ BOARD=$(cat /proc/cpuinfo | grep "Revision" | cut -d " " -f2 | awk '{print$1}') >+ fi >+ echo ">>> board tis $BOARD" >+#rpi >+ if [ "$(cat /proc/cpuinfo | grep "Hardware" | cut -d " " -f2 | awk '{print$1}')" = "BCM2708" ]; then >+ K_DEFCONFIG="bcmrpi_defconfig" >+ else >+ case ${BOARD} in >+ 900021|900032|900092|900093|900061|9000c1|pi) >+ K_DEFCONFIG="bcmrpi_defconfig" >+ ;; >+ a01040|a21041|p2) >+ K_DEFCONFIG="bcm2708_defconfig" >+ ;; >+ 9020e0|a02042|a22042|a22082|a220a0|a020d3|a32082|a020d3|a22083|a02100|pi3|pi3-64) >+ arm? >+ K_DEFCONFIG="bcm2709_defconfig" >+ arm64? >+ K_DEFCONFIG="bcmrpi3_defconfig" >+ ;; >+ a03111|b03111|b03112|c03111|c03112|c03114|d03114|c03130|pi4|pi4-64) >+ K_DEFCONFIG="bcm2711_defconfig" >+ ;; >+ *) >+ echo "So, So, Sorry, Unknown pi" >+ exit 3 >+ ;; >+ esac >+ fi >+} >+ >+src_compile() { >+ echo ">>> make $K_DEFCONFIG" >+ make $K_DEFCONFIG >+ echo ">>> make prepare" >+ make prepare >+ echo ">>> make oldconfig" >+ make oldconfig > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 762766
:
680425
| 680500