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 9E9EBDC140E for ; Thu, 4 Jun 2015 05:43:59 +0000 (UTC) Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com [209.85.217.173]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 33B80DC02B0 for ; Thu, 4 Jun 2015 05:43:53 +0000 (UTC) Received: by lbbtu8 with SMTP id tu8so4315971lbb.2 for ; Wed, 03 Jun 2015 22:43:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=/gpmlxSasFTJVRf3RZprctjih/k53uJvduM6xBgxIaI=; b=rn2iloRBomCUVby6FhChRibjPyW0+INg6SBCz7fIrpwHuIE1Vw8vznoHPU/NiL4OCC DfQwIEJbu515Dex6WjZ3OnMW7awMo6rwq9SzU+4jfj2rqomdHNBDF2npqIqv72m+bOkZ aT457LcMcBZ92pBgK/a35+2vPnHbQrKO6IDfj6RCPJxTz+20L4jit1Z6zijMnQLuClJ5 KT3l5lkwifu5zwNfhgkiac0nlhKmE8lP+nfsxhwvIcUKPrN7+78WtERxAQUA/leQJgp9 Iska87w5C/XI98tUwRm271JGz0I3tBcflbvhL2brLAD7TgrGue+My6sNCnfIFOJIe/Cx yANQ== X-Received: by 10.112.220.7 with SMTP id ps7mr35005335lbc.72.1433396631631; Wed, 03 Jun 2015 22:43:51 -0700 (PDT) Received: from vostro ([2001:1bc8:101:f402:21a:9fff:fe0c:4022]) by mx.google.com with ESMTPSA id fb5sm354416lbc.35.2015.06.03.22.43.51 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Jun 2015 22:43:51 -0700 (PDT) Sender: =?UTF-8?Q?Timo_Ter=C3=A4s?= Date: Thu, 4 Jun 2015 08:43:45 +0300 From: Timo Teras To: Marian Buschsieweke Cc: alpine-aports@lists.alpinelinux.org Subject: Re: [alpine-aports] [PATCH] testing/raspicom-module: new aport Message-ID: <20150604084345.43b3d6ba@vostro> In-Reply-To: <1430983871-915-1-git-send-email-mari.hahn@wwu.de> References: <1430983871-915-1-git-send-email-mari.hahn@wwu.de> 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 Hi, Sorry for the very late reply. 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? > +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. > + 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 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---