From 6324d303ab19382a91d5e8ca66bb7553a99acaba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 2 May 2017 18:11:26 +0200 Subject: Add bbb kernel --- profiles/base/armv7a/bbb/packages | 3 +- profiles/base/armv7a/rb2/packages | 2 +- sys-boot/uboot-bbb/files/uEnv.txt | 1 + sys-boot/uboot-bbb/uboot-bbb-2016.11.ebuild | 44 ++++++++++++++++++++++ sys-boot/uboot_bbb/files/uEnv.txt | 1 - sys-boot/uboot_bbb/uboot_bbb-2016.11.ebuild | 42 --------------------- sys-kernel/linux-bbb/linux-bbb-4.9.24.ebuild | 36 ++++++++++++++++++ sys-kernel/linux-raspberry2/Manifest | 1 - .../linux-raspberry2-4.10.13-r1.ebuild | 28 -------------- sys-kernel/linux-rb2/Manifest | 1 + .../linux-rb2/linux-raspberry2-4.10.13-r1.ebuild | 27 +++++++++++++ 11 files changed, 112 insertions(+), 74 deletions(-) create mode 100644 sys-boot/uboot-bbb/files/uEnv.txt create mode 100644 sys-boot/uboot-bbb/uboot-bbb-2016.11.ebuild delete mode 100644 sys-boot/uboot_bbb/files/uEnv.txt delete mode 100644 sys-boot/uboot_bbb/uboot_bbb-2016.11.ebuild create mode 100644 sys-kernel/linux-bbb/linux-bbb-4.9.24.ebuild delete mode 100644 sys-kernel/linux-raspberry2/Manifest delete mode 100644 sys-kernel/linux-raspberry2/linux-raspberry2-4.10.13-r1.ebuild create mode 100644 sys-kernel/linux-rb2/Manifest create mode 100644 sys-kernel/linux-rb2/linux-raspberry2-4.10.13-r1.ebuild diff --git a/profiles/base/armv7a/bbb/packages b/profiles/base/armv7a/bbb/packages index cfe68c8..9fdc576 100644 --- a/profiles/base/armv7a/bbb/packages +++ b/profiles/base/armv7a/bbb/packages @@ -1 +1,2 @@ -sys-boot/uboot_bbb +sys-boot/uboot-bbb +sys-kernel/linux-bbb diff --git a/profiles/base/armv7a/rb2/packages b/profiles/base/armv7a/rb2/packages index e0069b6..91686f9 100644 --- a/profiles/base/armv7a/rb2/packages +++ b/profiles/base/armv7a/rb2/packages @@ -1,3 +1,3 @@ -sys-kernel/linux-raspberry2 +sys-kernel/linux-rb2 sys-kernel/raspberrypi-image media-libs/raspberrypi-userland diff --git a/sys-boot/uboot-bbb/files/uEnv.txt b/sys-boot/uboot-bbb/files/uEnv.txt new file mode 100644 index 0000000..f432efc --- /dev/null +++ b/sys-boot/uboot-bbb/files/uEnv.txt @@ -0,0 +1 @@ +optargs=coherent_pool=1M diff --git a/sys-boot/uboot-bbb/uboot-bbb-2016.11.ebuild b/sys-boot/uboot-bbb/uboot-bbb-2016.11.ebuild new file mode 100644 index 0000000..06ec917 --- /dev/null +++ b/sys-boot/uboot-bbb/uboot-bbb-2016.11.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils git-r3 + +DESCRIPTION="Simple serial terminal" +HOMEPAGE="http://www.denx.de/wiki/U-Boot" + +EGIT_REPO_URI="git://git.denx.de/u-boot.git" +EGIT_COMMIT="v${PV}" + +LICENSE="GPL-3.0+" +SLOT="0" +KEYWORDS="-* arm" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND}" + +src_configure() { + emake am335x_boneblack_config +} + +src_install() { + dodir /boot + insinto /boot + doins MLO + doins u-boot.img + doins "${FILESDIR}"/uEnv.txt +} + +pkg_postinst() { + ROOT="$(mount | awk '/ on \/ / { print $1; }')" + if [[ $ROOT =~ ^/dev/mmcblk.*$ ]]; then + ROOT=${ROOT:0:12} + elog "Flashing the new U-Boot to boot device." + dd if=/boot/MLO of=$ROOT count=1 seek=1 conv=notrunc bs=128k + dd if=/boot/u-boot.img of=$ROOT count=2 seek=1 conv=notrunc bs=384k + else + ewarn "Root not detected. Please flash new U-Boot version by hand." + fi +} diff --git a/sys-boot/uboot_bbb/files/uEnv.txt b/sys-boot/uboot_bbb/files/uEnv.txt deleted file mode 100644 index f432efc..0000000 --- a/sys-boot/uboot_bbb/files/uEnv.txt +++ /dev/null @@ -1 +0,0 @@ -optargs=coherent_pool=1M diff --git a/sys-boot/uboot_bbb/uboot_bbb-2016.11.ebuild b/sys-boot/uboot_bbb/uboot_bbb-2016.11.ebuild deleted file mode 100644 index be1d8a5..0000000 --- a/sys-boot/uboot_bbb/uboot_bbb-2016.11.ebuild +++ /dev/null @@ -1,42 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -inherit eutils git-r3 - -DESCRIPTION="Simple serial terminal" -HOMEPAGE="http://www.denx.de/wiki/U-Boot" - -EGIT_REPO_URI="git://git.denx.de/u-boot.git" -EGIT_COMMIT="v${PV}" - -LICENSE="GPL-3.0+" -SLOT="0" -KEYWORDS="-* arm" -IUSE="" - -DEPEND="" -RDEPEND="${DEPEND}" - -src_configure() { - emake am335x_boneblack_config -} - -src_install() { - dodir /boot - insinto /boot - doins MLO - doins u-boot.img - doins "${FILESDIR}"/uEnv.txt -} - -pkg_postinst() { - ROOT="$(mount | awk '/ on \/ / { print $1; }')" - if [[ $ROOT =~ ^/dev/mmcblk.*$ ]]; then - ROOT=${ROOT:0:12} - elog "Flashing the new U-Boot to boot device." - dd if=/boot/MLO of=$ROOT count=1 seek=1 conv=notrunc bs=128k - dd if=/boot/u-boot.img of=$ROOT count=2 seek=1 conv=notrunc bs=384k - fi -} diff --git a/sys-kernel/linux-bbb/linux-bbb-4.9.24.ebuild b/sys-kernel/linux-bbb/linux-bbb-4.9.24.ebuild new file mode 100644 index 0000000..e1b34fe --- /dev/null +++ b/sys-kernel/linux-bbb/linux-bbb-4.9.24.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +GIT_REV="1b71b361146507b1e0c7922d05deb9164382ca66" + +DESCRIPTION="Linux kernel" +HOMEPAGE="http://kernel.org/" +SRC_URI="https://codeload.github.com/beagleboard/linux/zip/${GIT_REV} -> ${P}.zip" +S="${WORKDIR}/linux-${GIT_REV}" + +LICENSE="GPLv2" +SLOT="0" +KEYWORDS="-* arm" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND}" + +src_configure() { + emake bb.org_defconfig +} + +src_compile() { + emake uImage dtbs modules LOADADDR=0x82000000 +} + +src_install() { + emake modules_install INSTALL_MOD_PATH="${D}" + + dodir /boot + insinto /boot + doins "${S}/arch/arm/boot/zImage" + doins "arch/arm/boot/dts/am335x-boneblack.dtb" +} diff --git a/sys-kernel/linux-raspberry2/Manifest b/sys-kernel/linux-raspberry2/Manifest deleted file mode 100644 index 1a51c11..0000000 --- a/sys-kernel/linux-raspberry2/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST linux-raspberry2-4.10.13.tar.gz 185821682 SHA256 51a79ee43ed049f59f9ac37f2f57beecff189e36785eda7500f5221e8698c4e1 SHA512 aa78bf43526640f40db9c4f860d3996a264a53c6ae06340c71a0cdcbd9487f6aaf2abba58ad7d00b7ed7627040ec64334c9224ff2a36ccfba417abec25bf874d WHIRLPOOL 9a12be0aafe903b3d737c01c476adf872ea55e2f6c8d4eaf16bdef8bd2b75626c81236b60b6bb83cce1dfa2dcef7b3dd718d8fa2199dfd7991767fe4634a4457 diff --git a/sys-kernel/linux-raspberry2/linux-raspberry2-4.10.13-r1.ebuild b/sys-kernel/linux-raspberry2/linux-raspberry2-4.10.13-r1.ebuild deleted file mode 100644 index 46f61ff..0000000 --- a/sys-kernel/linux-raspberry2/linux-raspberry2-4.10.13-r1.ebuild +++ /dev/null @@ -1,28 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -GIT_REV="b957be36d793c59c5a12d1f00419c253d38dde1f" - -DESCRIPTION="Linux kernel" -HOMEPAGE="http://kernel.org/" -SRC_URI="https://codeload.github.com/raspberrypi/linux/zip/${GIT_REV}.zip -> ${P}.zip" -S="${WORKDIR}/linux-${GIT_REV}" - -LICENSE="GPLv2" -SLOT="0" -KEYWORDS="-* arm" -IUSE="" - -DEPEND="" -RDEPEND="${DEPEND}" - -src_configure() { - emake bcm2709_defconfig - emake oldconfig -} - -src_install() { - emake zinstall modules_install dtbs_install INSTALL_PATH="${D}" INSTALL_MOD_PATH="${D}" -} diff --git a/sys-kernel/linux-rb2/Manifest b/sys-kernel/linux-rb2/Manifest new file mode 100644 index 0000000..1a51c11 --- /dev/null +++ b/sys-kernel/linux-rb2/Manifest @@ -0,0 +1 @@ +DIST linux-raspberry2-4.10.13.tar.gz 185821682 SHA256 51a79ee43ed049f59f9ac37f2f57beecff189e36785eda7500f5221e8698c4e1 SHA512 aa78bf43526640f40db9c4f860d3996a264a53c6ae06340c71a0cdcbd9487f6aaf2abba58ad7d00b7ed7627040ec64334c9224ff2a36ccfba417abec25bf874d WHIRLPOOL 9a12be0aafe903b3d737c01c476adf872ea55e2f6c8d4eaf16bdef8bd2b75626c81236b60b6bb83cce1dfa2dcef7b3dd718d8fa2199dfd7991767fe4634a4457 diff --git a/sys-kernel/linux-rb2/linux-raspberry2-4.10.13-r1.ebuild b/sys-kernel/linux-rb2/linux-raspberry2-4.10.13-r1.ebuild new file mode 100644 index 0000000..8c7fbde --- /dev/null +++ b/sys-kernel/linux-rb2/linux-raspberry2-4.10.13-r1.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +GIT_REV="b957be36d793c59c5a12d1f00419c253d38dde1f" + +DESCRIPTION="Linux kernel" +HOMEPAGE="http://kernel.org/" +SRC_URI="https://codeload.github.com/raspberrypi/linux/zip/${GIT_REV}.zip -> ${P}.zip" +S="${WORKDIR}/linux-${GIT_REV}" + +LICENSE="GPLv2" +SLOT="0" +KEYWORDS="-* arm" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND}" + +src_configure() { + emake bcm2709_defconfig +} + +src_install() { + emake zinstall modules_install dtbs_install INSTALL_PATH="${D}" INSTALL_MOD_PATH="${D}" +} -- cgit v1.2.3