Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] [arm64 uboot] Resolved compilation issue for arm64 uboot
@ 2015-10-12 15:49 Matt Weber
  2015-10-12 17:39 ` Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: Matt Weber @ 2015-10-12 15:49 UTC (permalink / raw)
  To: buildroot

From: Ronak Desai <ronak.desai@rockwellcollins.com>

This patch has been added to resolve the compilation issue
of arm64 uboot.

For aarch64 architecture, kernel uses arm64 terminology and thus from
top-level Makefile KERNEL_ARCH is modified to arm64 for aarch64 which
then passed to uboot compilation. But, it causes compilation issue
while including architecture specific Makefile under
arch/$(ARCH)/Makefile as uboot uses top-level system architecture as
arm only.

Signed-off-by: Ronak Desai <ronak.desai@rockwellcollins.com>
Signed-off-by: Matt Weber <matthew.weber@rockwellcollins.com>
---
 boot/uboot/uboot.mk | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk
index fd29cea..21314c1 100644
--- a/boot/uboot/uboot.mk
+++ b/boot/uboot/uboot.mk
@@ -71,7 +71,16 @@ UBOOT_BIN = u-boot.bin
 UBOOT_BIN_IFT = $(UBOOT_BIN).ift
 endif
 
+# For aarch64 architecture, kernel uses arm64 terminology and thus from
+# # top-level Makefile KERNEL_ARCH is modified to arm64 for aarch64 which
+# # then passed to uboot compilation. But, it causes compilation issue
+# # while including architecture specific Makefile under arch/$(ARCH)/Makefile
+# # as uboot uses top-level system architecture as arm only.
+ifeq ($(KERNEL_ARCH),arm64)
+UBOOT_ARCH = arm
+else
 UBOOT_ARCH = $(KERNEL_ARCH)
+endif
 
 UBOOT_MAKE_OPTS += \
 	CROSS_COMPILE="$(TARGET_CROSS)" \
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/1] [arm64 uboot] Resolved compilation issue for arm64 uboot
  2015-10-12 15:49 [Buildroot] [PATCH 1/1] [arm64 uboot] Resolved compilation issue for arm64 uboot Matt Weber
@ 2015-10-12 17:39 ` Thomas Petazzoni
  2015-10-12 18:51   ` Matthew Weber
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2015-10-12 17:39 UTC (permalink / raw)
  To: buildroot

Dear Matt Weber,

On Mon, 12 Oct 2015 10:49:14 -0500, Matt Weber wrote:

> This patch has been added to resolve the compilation issue
> of arm64 uboot.
> 
> For aarch64 architecture, kernel uses arm64 terminology and thus from
> top-level Makefile KERNEL_ARCH is modified to arm64 for aarch64 which
> then passed to uboot compilation. But, it causes compilation issue
> while including architecture specific Makefile under
> arch/$(ARCH)/Makefile as uboot uses top-level system architecture as
> arm only.

I'm not a native english speaker, but the wording of this sentence
doesn't seem quite right.

The title of the commit should be:

	uboot: <something>

> +# For aarch64 architecture, kernel uses arm64 terminology and thus from
> +# # top-level Makefile KERNEL_ARCH is modified to arm64 for aarch64 which
> +# # then passed to uboot compilation. But, it causes compilation issue
> +# # while including architecture specific Makefile under arch/$(ARCH)/Makefile
> +# # as uboot uses top-level system architecture as arm only.

Double hashes a the beginning of each line -> not good.

Care to fix that up (especially rewording the commit log and comment) ?

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/1] [arm64 uboot] Resolved compilation issue for arm64 uboot
  2015-10-12 17:39 ` Thomas Petazzoni
@ 2015-10-12 18:51   ` Matthew Weber
  2015-10-12 18:56     ` Matthew Weber
  0 siblings, 1 reply; 4+ messages in thread
From: Matthew Weber @ 2015-10-12 18:51 UTC (permalink / raw)
  To: buildroot

Thomas,

On Mon, Oct 12, 2015 at 12:39 PM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Dear Matt Weber,
>
> On Mon, 12 Oct 2015 10:49:14 -0500, Matt Weber wrote:
>
>> This patch has been added to resolve the compilation issue
>> of arm64 uboot.
>>
>> For aarch64 architecture, kernel uses arm64 terminology and thus from
>> top-level Makefile KERNEL_ARCH is modified to arm64 for aarch64 which
>> then passed to uboot compilation. But, it causes compilation issue
>> while including architecture specific Makefile under
>> arch/$(ARCH)/Makefile as uboot uses top-level system architecture as
>> arm only.
>
> I'm not a native english speaker, but the wording of this sentence
> doesn't seem quite right.
>
> The title of the commit should be:
>
>         uboot: <something>
>
>> +# For aarch64 architecture, kernel uses arm64 terminology and thus from
>> +# # top-level Makefile KERNEL_ARCH is modified to arm64 for aarch64 which
>> +# # then passed to uboot compilation. But, it causes compilation issue
>> +# # while including architecture specific Makefile under arch/$(ARCH)/Makefile
>> +# # as uboot uses top-level system architecture as arm only.
>
> Double hashes a the beginning of each line -> not good.
>
> Care to fix that up (especially rewording the commit log and comment) ?
>

Yeah, not a problem.  I should have a new revision out soon.

> Thanks!
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com



-- 
Matthew L Weber / Pr Software Engineer
Airborne Information Systems / Security Systems and Software / Secure Platforms
MS 131-100, C Ave NE, Cedar Rapids, IA, 52498, USA
www.rockwellcollins.com

Note: Any Export License Required Information and License Restricted
Third Party Intellectual Property (TPIP) content must be encrypted and
sent to matthew.weber at corp.rockwellcollins.com.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/1] [arm64 uboot] Resolved compilation issue for arm64 uboot
  2015-10-12 18:51   ` Matthew Weber
@ 2015-10-12 18:56     ` Matthew Weber
  0 siblings, 0 replies; 4+ messages in thread
From: Matthew Weber @ 2015-10-12 18:56 UTC (permalink / raw)
  To: buildroot

Thomas,

On Mon, Oct 12, 2015 at 1:51 PM, Matthew Weber
<matthew.weber@rockwellcollins.com> wrote:
> Thomas,
>
> On Mon, Oct 12, 2015 at 12:39 PM, Thomas Petazzoni
> <thomas.petazzoni@free-electrons.com> wrote:
>> Dear Matt Weber,
>>
>> On Mon, 12 Oct 2015 10:49:14 -0500, Matt Weber wrote:
>>
>>> This patch has been added to resolve the compilation issue
>>> of arm64 uboot.
>>>
>>> For aarch64 architecture, kernel uses arm64 terminology and thus from
>>> top-level Makefile KERNEL_ARCH is modified to arm64 for aarch64 which
>>> then passed to uboot compilation. But, it causes compilation issue
>>> while including architecture specific Makefile under
>>> arch/$(ARCH)/Makefile as uboot uses top-level system architecture as
>>> arm only.
>>
>> I'm not a native english speaker, but the wording of this sentence
>> doesn't seem quite right.
>>
>> The title of the commit should be:
>>
>>         uboot: <something>
>>
>>> +# For aarch64 architecture, kernel uses arm64 terminology and thus from
>>> +# # top-level Makefile KERNEL_ARCH is modified to arm64 for aarch64 which
>>> +# # then passed to uboot compilation. But, it causes compilation issue
>>> +# # while including architecture specific Makefile under arch/$(ARCH)/Makefile
>>> +# # as uboot uses top-level system architecture as arm only.
>>
>> Double hashes a the beginning of each line -> not good.
>>
>> Care to fix that up (especially rewording the commit log and comment) ?
>>
>
> Yeah, not a problem.  I should have a new revision out soon.

I went ahead and marked this one as superseded.

>
>> Thanks!
>>
>> Thomas
>> --
>> Thomas Petazzoni, CTO, Free Electrons
>> Embedded Linux, Kernel and Android engineering
>> http://free-electrons.com
>
>
>
> --
> Matthew L Weber / Pr Software Engineer
> Airborne Information Systems / Security Systems and Software / Secure Platforms
> MS 131-100, C Ave NE, Cedar Rapids, IA, 52498, USA
> www.rockwellcollins.com
>
> Note: Any Export License Required Information and License Restricted
> Third Party Intellectual Property (TPIP) content must be encrypted and
> sent to matthew.weber at corp.rockwellcollins.com.



-- 
Matthew L Weber / Pr Software Engineer
Airborne Information Systems / Security Systems and Software / Secure Platforms
MS 131-100, C Ave NE, Cedar Rapids, IA, 52498, USA
www.rockwellcollins.com

Note: Any Export License Required Information and License Restricted
Third Party Intellectual Property (TPIP) content must be encrypted and
sent to matthew.weber at corp.rockwellcollins.com.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-10-12 18:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-12 15:49 [Buildroot] [PATCH 1/1] [arm64 uboot] Resolved compilation issue for arm64 uboot Matt Weber
2015-10-12 17:39 ` Thomas Petazzoni
2015-10-12 18:51   ` Matthew Weber
2015-10-12 18:56     ` Matthew Weber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox