Skip to contentSkip to conversation

backports: make BACKPORT_BUILD_LEDS depend on LEDS_CLASS=n

PATCH In review Johannes Berg 2 participants 4 messages Feb 10, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 backports: make BACKPORT_BUILD_LEDS depend on LEDS_CLASS=n

From: Johannes Berg <[email protected]>

Somehow !LEDS_CLASS and LEDS_CLASS=n seem to be different (likely because LEDS_CLASS is tristate, but BACKPORT_BUILD_LEDS is just a bool), so use LEDS_CLASS=n to fix build issues in other cases on certain kernel configurations.

---
 backport/compat/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
backport/compat/Kconfig +1 -1
index 2dda9ac..91531c3 100644
@@ -146,7 +146,7 @@ config BACKPORT_BUILD_DMA_SHARED_HELPERS
 
 config BACKPORT_BUILD_LEDS
 	bool
-	depends on !NEW_LEDS || !LEDS_CLASS || !LEDS_TRIGGERS
+	depends on !NEW_LEDS || LEDS_CLASS=n || !LEDS_TRIGGERS
 	default y if BACKPORT_NEW_LEDS
 	default y if BACKPORT_LEDS_CLASS
 	default y if BACKPORT_LEDS_TRIGGERS
Signature · 1 line
1.8.5.3
#1 lore raw

PATCH 2/2 backports: conditionally access net/ieee802154/ with make

From: Johannes Berg <[email protected]>

This essentially reverts commit cb6f08d3c38c as that caused issues with copy-list - the scripting when generating the backport can't prove that net/ieee802154/ isn't needed and will try to go into it even if it wasn't copied.

Instead, make net/ieee802154/ be entered whenever it might be needed - which is for CPTCFG_IEEE802154 and CPTCFG_BT. This is harmless if the directory ends up listed twice but will cause this problem to disappear.

---
 backport/Makefile.kernel | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
backport/Makefile.kernel +1 -1
index 0f5ed6c..6a1afc1 100644
@@ -34,7 +34,7 @@ obj-$(CPTCFG_NFC) += drivers/nfc/
 obj-$(CPTCFG_REGULATOR) += drivers/regulator/
 obj-$(CPTCFG_MEDIA_SUPPORT) += drivers/media/
 
-obj-y += net/ieee802154/
+obj-$(CPTCFG_IEEE802154) += net/ieee802154/
 obj-$(CPTCFG_MAC802154) += net/mac802154/
 obj-$(CPTCFG_IEEE802154) += drivers/net/ieee802154/
 
Signature · 1 line
1.8.5.3
#2 lore raw

Re: [PATCH 2/2] backports: conditionally access net/ieee802154/ with make

Quoted 11 lines · Johannes Berg

From: Johannes Berg <[email protected]>

This essentially reverts commit cb6f08d3c38c as that caused issues with copy-list - the scripting when generating the backport can't prove that net/ieee802154/ isn't needed and will try to go into it even if it wasn't copied.

Instead, make net/ieee802154/ be entered whenever it might be needed - which is for CPTCFG_IEEE802154 and CPTCFG_BT. This is harmless if the directory ends up listed twice but will cause this problem to disappear.

Err, forgot to git commit correctly ...

#3 lore raw
In reply to Johannes Berg
Quoted 7 lines · Johannes Berg

From: Johannes Berg <[email protected]>

Somehow !LEDS_CLASS and LEDS_CLASS=n seem to be different (likely because LEDS_CLASS is tristate, but BACKPORT_BUILD_LEDS is just a bool), so use LEDS_CLASS=n to fix build issues in other cases on certain kernel configurations.

Quoted 5 lines
---
 backport/compat/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Thank you for the patches, They were applied and I tested them.

Hauke