[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Add gnu/packages/u-boot.scm with all the boards that u-boot
From: |
Ludovic Courtès |
Subject: |
Re: [PATCH] Add gnu/packages/u-boot.scm with all the boards that u-boot supports right now |
Date: |
Fri, 22 Jul 2016 15:15:23 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Danny Milosavljevic <address@hidden> skribis:
>> This note should go to the top of the .patch file, along with one or two
>> sentences explaining what it does and why we need it.
>
> OK, will do that.
Great.
>> In that case, I’d suggest writing a procedure like:
>>
>> (define (make-u-boot-package board)
>> (package
>> (inherit u-boot)
>> (name (string-append "u-boot-" (string-downcase board)))
>> (arguments
>> ;; … pass the right configure flags etc.
>> )))
>>
>> Then it’s probably enough to export ‘u-boot’ and ‘make-u-boot’—having a
>> zillion variables doesn’t seem very helpful. People can explicitly call
>> ‘make-u-boot’ with the right board name
>
> Yeah, sounds much nicer.
>
> How do I test this? How can I call it?
For test purposes, you could define a package variant and try to build
it:
(define-public u-boot-FOOBAR
(make-u-boot "FOOBAR"))
and:
guix build u-boot-foobar
HTH!
Ludo’.
Re: GuixSD on ARM, Ludovic Courtès, 2016/07/13
Re: GuixSD on ARM, Eric Bavier, 2016/07/18