X-Original-To: alpine-aports@mail.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id 2E8E3DC07AC; Tue, 9 Jun 2015 14:00:38 +0000 (UTC) Received: from ncopa-desktop.alpinelinux.org (unknown [79.160.13.133]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: n@tanael.org) by mail.alpinelinux.org (Postfix) with ESMTPSA id 2CEB5DC0095; Tue, 9 Jun 2015 14:00:37 +0000 (UTC) Date: Tue, 9 Jun 2015 16:00:34 +0200 From: Natanael Copa To: Timo Teras Cc: Marian Buschsieweke , alpine-aports@lists.alpinelinux.org Subject: Re: [alpine-aports] [PATCH] testing/raspicom-module: new aport Message-ID: <20150609160034.29a01e11@ncopa-desktop.alpinelinux.org> In-Reply-To: <20150604084345.43b3d6ba@vostro> References: <1430983871-915-1-git-send-email-mari.hahn@wwu.de> <20150604084345.43b3d6ba@vostro> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-alpine-linux-musl) X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP On Thu, 4 Jun 2015 08:43:45 +0300 Timo Teras wrote: > Hi, > > Sorry for the very late reply. +1 > Few additional notes based on attempt to apply it. Also few spots > that maybe @ncopa can comment also? > > On Thu, 7 May 2015 09:31:11 +0200 > Marian Buschsieweke wrote: > > > http://www.amescon.com/products/raspicomm/ > > > > Kernel module for RS-485 Port and OpenRC services to set up RTC, > > Joystick and LEDs of Amescon's RasPiComm module > > > > diff --git a/testing/raspicomm-module/APKBUILD > > b/testing/raspicomm-module/APKBUILD new file mode 100644 > > index 0000000..bf3dd99 > > --- /dev/null > > +++ b/testing/raspicomm-module/APKBUILD > > @@ -0,0 +1,83 @@ > > +# Contributor: Marian Buschsieweke > > + > > +_flavor=rpi > > +_kpkg=linux-$_flavor > > +_kver=3.18.12 > > +_kpkgrel=0 > > +_mypkgrel=0 > > +_realname=raspicomm-module > > + > > +# verify the kernel version before entering chroot > > +if [ -f ../../main/linux-${_flavor}/APKBUILD ]; then > > + . ../../main/linux-${_flavor}/APKBUILD > > + [ "$_kver" != "$pkgver" ] && die "${_realname}: please > > update _kver to $pkgver" > > + [ "$_kpkgrel" != "$pkgrel" ] && die "${_realname}: please > > update _kpkgrel to $pkgrel" +fi > > + > > main/linux-rpi now ships linux-rpi and linux-rpi2 flavors. Both are > included in the 3.2.0 rpi tarball, and correct version is > automatically used based on bootloader's hardware detection. > > I wonder if this should be made somehow to build for both flavors too? It would be nice. But I don't know how. We would need linux-rpi-dev and linux-rpi2-dev then. > > +build() { > > + cd "$_builddir" > > + export GCC_SPECS=hardenednopie.specs > > @ncopa, Could we drop GCC_SPECS here, and infact all of the aports > tree? The gcc pie-patches have longtime disabled esp support if > __KERNEL__ is defined. Yes. I think we can drop this. > > > + make -f Makefile_rpi > > This failed with: > > raspicomm-module: > Unpacking /var/cache/distfiles/raspicomm-module-v1.12.tar.gz... > raspicomm-module: Creating group gpio > make -C /lib/modules/3.18.12-1-grsec/build > M=/home/tteras/aports/testing/raspicomm-module/src/raspicomm-module-1.12 > modules make[1]: *** /lib/modules/3.18.12-1-grsec/build: No such file > or directory. Stop. Makefile_rpi:6: recipe for target 'all' failed > > I suspect you need to explicitly specify the kernel source tree to > use. So it'll use /lib/modules/$_kpkg-$_kver-$_kpkgrel-$_flavor. The > reason is that raspberry pi stuff is complied on wandboard, and the > running kernel will not match what we want to build. > > Otherwise it's starting to look good. > > Thanks, > Timo -nc --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---