All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2 1/1] paxtest: new package
Date: Fri, 7 Jul 2017 09:14:30 +0200	[thread overview]
Message-ID: <5c0cab0d-11bb-2b45-655f-cb17a5e8f9aa@mind.be> (raw)
In-Reply-To: <CANQCQpb7fPZLS48niCz7F=5E-yF7ZMkC-WByi0yvCUBaE3GddQ@mail.gmail.com>



On 07-07-17 04:32, Matthew Weber wrote:
> Arnout,
> 
> On Thu, Jul 6, 2017 at 6:32 PM, Arnout Vandecappelle <arnout@mind.be> wrote:
>>
>>
>> On 06-07-17 04:35, Matt Weber wrote:
[snip]
>>> +PAXTEST_SOURCE = paxtest-$(PAXTEST_VERSION).tar.gz
>>
>>  This is the default and can be removed.
> 
> Thanks, the previous site we used had the dash as a underscore, didn't
> realize when I updated it is back to normal.  Will remove.

 Easy to miss. That's why even Peter and Thomas post their patches for review.

[snip]
>>> +define PAXTEST_BUILD_CMDS
>>> +     $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) CC=$(TARGET_CC) LD=$(TARGET_LD) linux
>>
>>  TARGET_CC may consist of multiple words, so you have to quote this.
>>
>>  Does this package really use LD? That's usually annoying because it breaks
>> situations that require specific architecture options to build correctly. Can
>> you try if it works with LD=$(TARGET_CC) ?
>>
> 
> It works using TARGET_CC instead.  Will make that update.

 It would be good to do a build test with one of those weird MIPS architectures
to be sure. Check e.g. if it builds correctly with BR2_mips64=y and
BR2_MIPS_NABI32=y.

> 
>>> +endef
>>> +
>>> +define PAXTEST_INSTALL_TARGET_CMDS
>>> +     $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) \
>>
>>  Please use the same options as for building, i.e. include CC= and LD=, just in
>> case something still gets built at install time.
> 
> Sure.
> 
> So my .mk ends up looking like:
> 
> PAXTEST_VERSION = 0.9.15
> PAXTEST_SITE = https://www.grsecurity.net/~spender
> PAXTEST_LICENSE = GPL-2.0+
> PAXTEST_LICENSE_FILES = README
> 
> define PAXTEST_BUILD_CMDS
>         $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
>                 CC="$(TARGET_CC)" LD="$(TARGET_CC)" linux
> endef
> 
> define PAXTEST_INSTALL_TARGET_CMDS
>         $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
>                 CC="$(TARGET_CC)" LD="$(TARGET_CC)" \
>                 DESTDIR=$(TARGET_DIR) \
>                 BINDIR="usr/bin" \
>                 RUNDIR="usr/lib" -f Makefile.psm install
> endef
> 
> $(eval $(generic-package))

 Looks good to me.

 Regards,
 Arnout

> 
> 
> Appreciate the review!
> 
> Matt
> 

-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF

  reply	other threads:[~2017-07-07  7:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-06  2:35 [Buildroot] [PATCH v2 1/1] paxtest: new package Matt Weber
2017-07-06 23:32 ` Arnout Vandecappelle
2017-07-07  2:32   ` Matthew Weber
2017-07-07  7:14     ` Arnout Vandecappelle [this message]
2017-07-07 11:43       ` Matthew Weber
2017-07-07 13:43         ` Matthew Weber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5c0cab0d-11bb-2b45-655f-cb17a5e8f9aa@mind.be \
    --to=arnout@mind.be \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.