package/assimp: remove redundant ':' sign
PATCH 1/2 package/assimp: remove redundant ':' sign
Signed-off-by Jerzy Grzegorek <[email protected]>
--- package/assimp/assimp.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/assimp/assimp.mk +1 -1
@@ -20,7 +20,7 @@ endif # not passed) in gcc versions 5.x or older. The -Os optimization level # causes a "unable to find a register to spill in class # ?GENERAL_REGS?" error. -O2 works fine. -ifeq ($(BR2_sh):$(BR2_STATIC_LIBS):$(BR2_TOOLCHAIN_GCC_AT_LEAST_6),y:y:) +ifeq ($(BR2_sh)$(BR2_STATIC_LIBS):$(BR2_TOOLCHAIN_GCC_AT_LEAST_6),yy:) ASSIMP_CXXFLAGS += -O2 endif
Signature · 1 line
1.9.1
PATCH 2/2 package/aufs: remove redundant ':' sign
Signed-off-by Jerzy Grzegorek <[email protected]>
--- package/aufs/aufs.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/aufs/aufs.mk +1 -1
@@ -15,7 +15,7 @@ else ifeq ($(BR2_PACKAGE_AUFS_SERIES),4) AUFS_SITE = $(call github,sfjro,aufs4-standalone,$(AUFS_VERSION)) endif -ifeq ($(BR_BUILDING):$(BR2_PACKAGE_AUFS):$(AUFS_VERSION),y:y:) +ifeq ($(BR_BUILDING)$(BR2_PACKAGE_AUFS):$(AUFS_VERSION),yy:) $(error No aufs version specified) endif
Signature · 1 line
1.9.1
PATCH 1/2 package/assimp: remove redundant ':' sign
In reply to Jerzy GrzegorekHello,
Quoted 10 lines · Jerzy Grzegorek
Signed-off-by Jerzy Grzegorek <[email protected]>--- package/assimp/assimp.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)package/assimp/assimp.mk +0
-0
package/assimp/assimp.mk endif · line 23
Quoted 5 lines
package/assimp/assimp.mk +1
-1@@ -20,7 +20,7 @@ endif # not passed) in gcc versions 5.x or older. The -Os optimization level # causes a "unable to find a register to spill in class # ?GENERAL_REGS?" error. -O2 works fine. -ifeq ($(BR2_sh):$(BR2_STATIC_LIBS):$(BR2_TOOLCHAIN_GCC_AT_LEAST_6),y:y:) +ifeq ($(BR2_sh)$(BR2_STATIC_LIBS):$(BR2_TOOLCHAIN_GCC_AT_LEAST_6),yy:)
I don't find the ":" to be really redundant. Yes, this ":" is not technically needed, but it makes the construct very clear and avoids any possible confusion.
So I think my preference would be to keep things as-is. I know in other places we don't put a ":" when we need both options to be "y". But when we have a case where some options need to be "y", some options need to be empty, I find having a ":" between each to be clearer.
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com