From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: Re: [PATCH 5/5] gnu: Add arduino-makefile. Date: Wed, 17 Aug 2016 11:03:52 +0200 Message-ID: <20160817110352.3011e442@scratchpost.org> References: <20160816183632.30820-1-dannym@scratchpost.org> <20160816183632.30820-6-dannym@scratchpost.org> <20160817000228.116a0d10@openmailbox.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46935) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZwlV-0006nd-Qf for guix-devel@gnu.org; Wed, 17 Aug 2016 05:04:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bZwlQ-00044M-L4 for guix-devel@gnu.org; Wed, 17 Aug 2016 05:04:00 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:50940) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZwlQ-00043v-F0 for guix-devel@gnu.org; Wed, 17 Aug 2016 05:03:56 -0400 In-Reply-To: <20160817000228.116a0d10@openmailbox.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Eric Bavier Cc: guix-devel@gnu.org > Should this not point to /gnu/store/...-python-3...? If not, it could > probably be left alone, since any package built with it will presumably > have its shebangs patched. It's just that Python 3 is incompatible with Python 2 but the source code has no marker in the file - so patch-shebang would have to use a crystal ball, tea leaves or whatever to find out it is indeed Python 3. I expect that patch-shebang will then see python3 and correct it - and it does. > You can use 'install-file' from (guix build utils) here to remove much > of the repitition. Ah, nice! > > + ;(supported-systems '("avr")) > > You can remove this comment. I wouldn't. It's nice to see that it's for AVR even if we don't use the whole target machinery (I tried invoking "guix build --target=avr" before and it rebuilt half the universe - not sure why. There are not many non-native inputs and the native inputs are... native). > I don't have an arduino to test this package on. Can anyone else help > with this? You can still test the compilation and linkage. My Makefile to test this looks like this: ARCHITECTURE = avr BOARD_TAG = uno # shouldn't be necessary but is CPPFLAGS += -I${HOME}/.guix-profile/avr/include # shouldn't be necessary but is. The "-L" flag order matters. LDFLAGS += -L${HOME}/.guix-profile/avr/lib/avr5 -L${HOME}/.guix-profile/avr/lib -B${HOME}/.guix-profile/avr/lib include /gnu/store/k21m6b7c8bmzxk5x73zqm0qaz769lx2d-arduino-makefile-1.5.1/share/arduino/Arduino.mk Then create a file Blink.ino in the same directory which contains: void setup() { } void loop() { } Then run $ make