diff options
author | 2015-08-08 16:44:27 -0700 | |
---|---|---|
committer | 2015-08-08 16:44:27 -0700 | |
commit | fd8ff3e22991b136e48f9ddb5270e4616cae644c (patch) | |
tree | d9247c2b72bfb5f6a138540a47c0e8d59a7ff9c9 /sys-kernel | |
parent | excluded obsolete patch from nouveau patch tarball (diff) | |
download | arm-fd8ff3e22991b136e48f9ddb5270e4616cae644c.tar.gz arm-fd8ff3e22991b136e48f9ddb5270e4616cae644c.tar.bz2 arm-fd8ff3e22991b136e48f9ddb5270e4616cae644c.zip |
first iteration of armv7multi-sources
Diffstat (limited to 'sys-kernel')
4 files changed, 155 insertions, 0 deletions
diff --git a/sys-kernel/armv7multi-sources/Manifest b/sys-kernel/armv7multi-sources/Manifest new file mode 100644 index 0000000..ba6e9ab --- /dev/null +++ b/sys-kernel/armv7multi-sources/Manifest @@ -0,0 +1,5 @@ +DIST genpatches-4.1-8.base.tar.xz 136372 SHA256 9be08b05eb8a10387d791d496ec5a4e7eb22c07dabb93bbba21f2aa11fb5be61 SHA512 67110c4191d8a40a435bd767a8024edac7bb00de507703a3faf5798d484f2d373aa1257bb23209f0151c394b08fb2577af5b8bd621a6654bfdbc247e4a083c58 WHIRLPOOL 26e727302e2c790805748e85610c5673e7b0c2869be9bf2938df07c18ed15c44ed278c285d073d71c69d83614bdee2c3058b82cb3720188ad91994fdde442820 +DIST genpatches-4.1-8.experimental.tar.xz 214924 SHA256 89ed455ba8d8aee207993b600b79b067d3fdf329b143ddbc00fe7b562bdf9893 SHA512 0722ea9d5219a06e6bee24a1be46fccf098367c2845e9c2196c29412fd64815db06f42ad724fd96bbd94527e84bb01929b744059add8b5fb555dcc87d2e8a593 WHIRLPOOL f4b3a57bdf713c4a5819276cc2a6f441741c91ae58aacf49076bfe889b617f67f158b5a61a27341318a02bb8de1b1959860433339d9a3a2337a62098a11e6261 +DIST genpatches-4.1-8.extras.tar.xz 16172 SHA256 8968ac71a0bf7c9d17600c5ac09d78216e14c54cfa9873aabce9c972747b3aa8 SHA512 654154fb0c7701083bcc530448cf1eb1a93bb0bfdc1f7816f40a5f8777b3e2209ed49f23954b095d99cd38cb83a676f0597cde13499b8ed7cce94eac464a7329 WHIRLPOOL c4d629ffb6211a71771ffa5165409bf29091e0c34e4350d6142617dc63f48c1d9d5bbc14b0b39d068d21ea1353f2b7496ae2b2d399734fd69d338f867876e695 +DIST linux-4.1.tar.xz 83017828 SHA256 caf51f085aac1e1cea4d00dbbf3093ead07b551fc07b31b2a989c05f8ea72d9f SHA512 168ef84a4e67619f9f53f3574e438542a5747f9b43443363cb83597fcdac9f40d201625c66e375a23226745eaada9176eb006ca023613cec089349e91751f3c0 WHIRLPOOL 85fcfdb67ea7f865272a85d3b4c3ec1f5a1267f4664bf073c562bb3875e9d96ad68486259d8866a9aced98c95de16840ec531d89745aec75b7315a64ebe650b8 +DIST patch-4.1.4-armv7-x2.diff.gz 314399 SHA256 cafd32e1bf11a7f14204d6fcecbc88f5eacb93bf5f53e63a2016465f2f3d118b SHA512 6ece3a6bafc8975cde1408f08665ab3c26490c2cb52a9b51a1e055485bc15a494d274741eef6909ff4e1182587d9d8784ad8d1ccfc9310075733ff6334c7e238 WHIRLPOOL 4f84206f491f7ccd642401cd8b391d8d45ee3592a6b2de97ce17a2e3410a227c00171bb564b1d9fe40bf2ea749acee66fda2a9336e009952c4a08659bfa6fbdb diff --git a/sys-kernel/armv7multi-sources/armv7multi-sources-4.1.4-r2.ebuild b/sys-kernel/armv7multi-sources/armv7multi-sources-4.1.4-r2.ebuild new file mode 100644 index 0000000..34edaf1 --- /dev/null +++ b/sys-kernel/armv7multi-sources/armv7multi-sources-4.1.4-r2.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="5" + +ETYPE="sources" +UNIPATCH_STRICTORDER="1" +K_WANT_GENPATCHES="base extras experimental" +K_GENPATCHES_VER="8" +K_DEBLOB_AVAILABLE="0" +K_KDBUS_AVAILABLE="1" +#K_NOUSEPR="1" + +inherit kernel-2 eutils +detect_version +detect_arch + +inherit versionator +MY_PR="armv7-x${PR/r/}" +EXTRAVERSION="-${MY_PR}" +MY_P="${OKV}-${MY_PR}" + +MULTI_PATCH="patch-${MY_P}.diff" +MULTI_URI="https://rcn-ee.com/deb/sid-armhf/v${MY_P}/${MULTI_PATCH}.gz" + +KEYWORDS="~arm" +HOMEPAGE="https://eewiki.net/display/linuxonarm/Home" + +DESCRIPTION="Full sources for ${OKV} kernel plus Wandboard, Udoo, and BeagleBone patches" +SRC_URI=" + ${KERNEL_URI} + ${MULTI_URI} + ${ARCH_URI} + imx? ( ${GENPATCHES_URI} ) + " + +KEYWORDS="~arm" +IUSE="experimental imx" + +K_EXTRAELOG="This is the bleeding-edge patch set on full gentoo-sources + kernel from LinuxOnArm maintainer Robert C Nelson. Intended mainly + for i.MX-based boards like Wand or Udoo (use bone-sources for building + a beaglebone kernel)." + +RDEPEND="" +DEPEND="${RDEPEND} + >=sys-devel/patch-2.7.4" + +src_unpack() { + # need to unpack manually due to patch reqs below + use imx && unpack ${MULTI_PATCH}.gz + + kernel-2_src_unpack +} + +src_prepare() { + # We can't use unipatch or epatch here due to the git binary + # diffs that always cause dry-run errors (even with --force). + # That is okay since this is not intended for beaglebone. + + if use imx ; then + ebegin "Applying ${MULTI_PATCH}" + patch -p1 "${WORKDIR}"/${MULTI_PATCH} + eend $? || return + fi +} + +pkg_postinst() { + kernel-2_pkg_postinst + einfo "For more info on this patchset, and how to report problems, see:" + einfo "${HOMEPAGE}" +} + +pkg_postrm() { + kernel-2_pkg_postrm +} diff --git a/sys-kernel/armv7multi-sources/files/dso-link-change.patch b/sys-kernel/armv7multi-sources/files/dso-link-change.patch new file mode 100644 index 0000000..5d8ab58 --- /dev/null +++ b/sys-kernel/armv7multi-sources/files/dso-link-change.patch @@ -0,0 +1,62 @@ +When building ncurses with --with-termlib several symbols get moved from +libncurses.so to libtinfo.so. Thus when linking with libncurses.so, one +additionally needs to link with libtinfo.so. + +Ncurses provides a config script (ncurses5-config) and an interface with +pkg-config. This patch makes use of those to detect the necessary libs +for linking of the ncurses menuconfig and nconfig dialogs. + +Signed-off-by: Justin Lecher <jlec@gentoo.org> +--- + scripts/kconfig/Makefile | 2 +- + scripts/kconfig/lxdialog/check-lxdialog.sh | 22 ++++++++++++++-------- + 2 files changed, 15 insertions(+), 9 deletions(-) +diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile +index 3091794..7649047 100644 +--- a/scripts/kconfig/Makefile ++++ b/scripts/kconfig/Makefile +@@ -216,7 +216,7 @@ HOSTCFLAGS_gconf.o = `pkg-config --cflags gtk+-2.0 gmodule-2.0 libglade-2.0` \ + + HOSTLOADLIBES_mconf = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC)) + +-HOSTLOADLIBES_nconf = -lmenu -lpanel -lncurses ++HOSTLOADLIBES_nconf = `pkg-config --libs menu panel ncurses` + $(obj)/qconf.o: $(obj)/.tmp_qtcheck + + ifeq ($(qconf-target),1) +diff --git a/scripts/kconfig/lxdialog/check-lxdialog.sh b/scripts/kconfig/lxdialog/check-lxdialog.sh +index c8e8a71..4699c1b 100644 +--- a/scripts/kconfig/lxdialog/check-lxdialog.sh ++++ b/scripts/kconfig/lxdialog/check-lxdialog.sh +@@ -4,15 +4,21 @@ + # What library to link + ldflags() + { +- for ext in so a dll.a dylib ; do +- for lib in ncursesw ncurses curses ; do +- $cc -print-file-name=lib${lib}.${ext} | grep -q / +- if [ $? -eq 0 ]; then +- echo "-l${lib}" +- exit +- fi ++ if type -p ncurses5-config &> /dev/null ; then ++ ncurses5-config --libs ++ exit 0 ++ else ++ for ext in so a dll.a dylib ; do ++ for lib in ncursesw ncurses curses ; do ++ $cc -print-file-name=lib${lib}.${ext} | \ ++ grep -q / ++ if [ $? -eq 0 ]; then ++ echo "-l${lib}" ++ exit ++ fi ++ done + done +- done ++ fi + exit 1 + } + +-- +1.8.1.4 diff --git a/sys-kernel/armv7multi-sources/metadata.xml b/sys-kernel/armv7multi-sources/metadata.xml new file mode 100644 index 0000000..6872235 --- /dev/null +++ b/sys-kernel/armv7multi-sources/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> + <email>nerdboy@gentoo.org</email> + <name>Steve Arnold</name> +</maintainer> +<use> + <flag name="imx">Apply upstream patch (mostly) for i.MX boards</flag> +</use> +</pkgmetadata> |