OpenWrt Forum Archive

Topic: dependencies question

The content of this topic has been archived on 5 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi, I'm having trouble solving a dependency problem. I referred to the documentation on dependencies.
Basically, I'm trying to use a field from the .config file (CONFIG_TARGET_xxx) in the Makefile.

My requirement is to have it like this:

   if (CONFIG_TARGET_xxx) then (and only then) select the package

What I tried so far:

1) DEPENDS:=+CONFIG_TARGET_xxx:package_name (Result: didn't work)

2) In Config.in, I tried using 'select package if SYMBOL' as mentioned in the Special notes section. (Result: didn't work).

Lot of views but no response so far. Can anyone share their expertise?

The discussion might have continued from here.