Skip to contentSkip to conversation

package/coremark: Set cflags

PATCH Applied Joel Stanley 4 participants 5 messages Sep 13, 2022 – Apr 23, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/coremark: Set cflags

The coremark build needs to set PORT_CFLAGS explicitly in order to pick up the configured optmisation level, and other flags.

---
 package/coremark/coremark.mk | 1 +
 1 file changed, 1 insertion(+)
package/coremark/coremark.mk +1 -0
index 418fd5c8d39b..9ea8693e7189 100644
@@ -11,6 +11,7 @@ COREMARK_LICENSE_FILES = LICENSE.md
 
 define COREMARK_BUILD_CMDS
 	$(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC)" -C $(@D) \
+		PORT_CFLAGS="$(TARGET_CFLAGS)" \
 		PORT_DIR=linux$(if $(BR2_ARCH_IS_64),64) EXE= link
 endef
 
Signature · 6 lines
2.35.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Joel Stanley

The coremark build needs to set PORT_CFLAGS explicitly in order to pick up the configured optmisation level, and other flags.

Quoted 17 lines
---
 package/coremark/coremark.mk | 1 +
 1 file changed, 1 insertion(+)
package/coremark/coremark.mk +1 -1
index 418fd5c8d39b..9ea8693e7189 100644
@@ -11,6 +11,7 @@ COREMARK_LICENSE_FILES = LICENSE.md
 
 define COREMARK_BUILD_CMDS
        $(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC)" -C $(@D) \
+               PORT_CFLAGS="$(TARGET_CFLAGS)" \
                PORT_DIR=linux$(if $(BR2_ARCH_IS_64),64) EXE= link
 endef
 
--
Quoted 2 lines

2.35.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw
Quoted 9 lines · Chris Packham
Quoted 5 lines · Joel Stanley

The coremark build needs to set PORT_CFLAGS explicitly in order to pick up the configured optmisation level, and other flags.

ping

Quoted 17 lines
Quoted 17 lines
---
 package/coremark/coremark.mk | 1 +
 1 file changed, 1 insertion(+)
package/coremark/coremark.mk +1 -0
index 418fd5c8d39b..9ea8693e7189 100644
@@ -11,6 +11,7 @@ COREMARK_LICENSE_FILES = LICENSE.md
 
 define COREMARK_BUILD_CMDS
        $(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC)" -C $(@D) \
+               PORT_CFLAGS="$(TARGET_CFLAGS)" \
                PORT_DIR=linux$(if $(BR2_ARCH_IS_64),64) EXE= link
 endef
 
Quoted 3 lines
Quoted 3 lines

--
2.35.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw
In reply to Joel Stanley

Joel, All,

On 2022-09-13 16:53 +0930, Joel Stanley spake thusly:

Quoted 4 lines

The coremark build needs to set PORT_CFLAGS explicitly in order to pick up the configured optmisation level, and other flags.

Applied to master, thanks.

Sorry for the delay in reviewing and applying such a simple patch. :-(

Regards,
Yann E. MORIN.

Quoted 23 lines
---
 package/coremark/coremark.mk | 1 +
 1 file changed, 1 insertion(+)
package/coremark/coremark.mk +1 -0
index 418fd5c8d39b..9ea8693e7189 100644
@@ -11,6 +11,7 @@ COREMARK_LICENSE_FILES = LICENSE.md
 
 define COREMARK_BUILD_CMDS
 	$(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC)" -C $(@D) \
+		PORT_CFLAGS="$(TARGET_CFLAGS)" \
 		PORT_DIR=linux$(if $(BR2_ARCH_IS_64),64) EXE= link
 endef
 
Signature · 6 lines
2.35.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#4 lore raw
In reply to Joel Stanley
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Joel" == Joel Stanley <[email protected]> writes:

The coremark build needs to set PORT_CFLAGS explicitly in order to pick up the configured optmisation level, and other flags.

Committed to 2023.02.x and 2022.02.x, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot