mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: barebox@lists.infradead.org
Subject: Re: [PATCH 1/1] Makefile: x_flags prepare for apps support
Date: Wed, 20 Feb 2013 15:24:40 +0100	[thread overview]
Message-ID: <20130220142440.GB5291@game.jcrosoft.org> (raw)
In-Reply-To: <1361370009-15147-1-git-send-email-plagnioj@jcrosoft.com>

On 15:20 Wed 20 Feb     , Jean-Christophe PLAGNIOL-VILLARD wrote:
> only include barebox header for barebox flags
ignore for now

wrong patch

Best Regards,
J.
> 
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> ---
>  Makefile             |    3 ++-
>  arch/arm/Makefile    |    3 ++-
>  scripts/Makefile.lib |   13 +++++++++----
>  3 files changed, 13 insertions(+), 6 deletions(-)
> 
> diff --git a/Makefile b/Makefile
> index 7f97e8f..f1d3c50 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -297,7 +297,7 @@ LINUXINCLUDE    := -Iinclude \
>                     -include include/generated/autoconf.h \
>                     -include $(srctree)/include/linux/kconfig.h
>  
> -CPPFLAGS        := -D__KERNEL__ -D__BAREBOX__ $(LINUXINCLUDE) -fno-builtin -ffreestanding
> +CPPFLAGS        := -D__KERNEL__ -D__BAREBOX__ -fno-builtin -ffreestanding
>  
>  CFLAGS          := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
>                     -fno-strict-aliasing -fno-common -Os -pipe
> @@ -315,6 +315,7 @@ export CPP AR NM STRIP OBJCOPY OBJDUMP MAKE AWK GENKSYMS PERL UTS_MACHINE
>  export HOSTCXX HOSTCXXFLAGS LDFLAGS_MODULE CHECK CHECKFLAGS
>  
>  export CPPFLAGS NOSTDINC_FLAGS LINUXINCLUDE OBJCOPYFLAGS LDFLAGS
> +export AFLAGS_LINUXINCLUDE
>  export CFLAGS CFLAGS_KERNEL
>  export AFLAGS AFLAGS_KERNEL
>  
> diff --git a/arch/arm/Makefile b/arch/arm/Makefile
> index b98d6b8..240cae7 100644
> --- a/arch/arm/Makefile
> +++ b/arch/arm/Makefile
> @@ -47,7 +47,8 @@ AFLAGS_THUMB2	:=$(CFLAGS_THUMB2) -Wa$(comma)-mthumb
>  endif
>  
>  CPPFLAGS += $(CFLAGS_ABI) $(arch-y) $(tune-y) -msoft-float $(CFLAGS_THUMB2)
> -AFLAGS   += -include asm/unified.h -msoft-float $(AFLAGS_THUMB2)
> +AFLAGS_LINUXINCLUDE += -include asm/unified.h
> +AFLAGS   += -msoft-float $(AFLAGS_THUMB2)
>  
>  # Machine directory name.  This list is sorted alphanumerically
>  # by CONFIG_* macro name.
> diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
> index 871c44b..91e4c47 100644
> --- a/scripts/Makefile.lib
> +++ b/scripts/Makefile.lib
> @@ -130,16 +130,21 @@ __a_flags	=                          $(call flags,_a_flags)
>  __cpp_flags     =                          $(call flags,_cpp_flags)
>  endif
>  
> -c_flags        = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(CPPFLAGS) \
> +___c_flags        = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(CPPFLAGS) \
>  		 $(__c_flags) $(modkern_cflags) \
>  		 -D"KBUILD_STR(s)=\#s" $(basename_flags) $(modname_flags)
>  
> -a_flags        = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(CPPFLAGS) \
> +___a_flags        = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(CPPFLAGS) \
>  		 $(__a_flags) $(modkern_aflags)
>  
> -cpp_flags      = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(__cpp_flags)
> +___cpp_flags      = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(__cpp_flags)
>  
> -ld_flags       = $(LDFLAGS) $(EXTRA_LDFLAGS)
> +___ld_flags       = $(LDFLAGS) $(EXTRA_LDFLAGS)
> +
> +c_flags        = $(___c_flags) $(LINUXINCLUDE)
> +a_flags        = $(___a_flags) $(LINUXINCLUDE) $(AFLAGS_LINUXINCLUDE)
> +cpp_flags      = $(___cpp_flags) $(LINUXINCLUDE)
> +ld_flags       = $(___ld_flags)
>  
>  # Finds the multi-part object the current object will be linked into
>  modname-multi = $(sort $(foreach m,$(multi-used),\
> -- 
> 1.7.10.4
> 

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      reply	other threads:[~2013-02-20 14:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-20 14:20 Jean-Christophe PLAGNIOL-VILLARD
2013-02-20 14:24 ` Jean-Christophe PLAGNIOL-VILLARD [this message]

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=20130220142440.GB5291@game.jcrosoft.org \
    --to=plagnioj@jcrosoft.com \
    --cc=barebox@lists.infradead.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox