Browse Source

add correct dependencies, when kernel modules are choosen via flavour/choices and subpackages

Waldemar Brodkorb 14 years ago
parent
commit
bc81882337
1 changed files with 12 additions and 3 deletions
  1. 12 3
      tools/adk/pkgmaker.c

+ 12 - 3
tools/adk/pkgmaker.c

@@ -589,7 +589,10 @@ int main() {
 				if (result == 1) {
 					val = strtok_r(hvalue, " ", &saveptr);
 					while (val != NULL) { 
-						fprintf(cfg, "\tselect ADK_PACKAGE_%s\n", toupperstr(val));
+						if (strncmp(val, "kmod", 4) == 0)
+							fprintf(cfg, "\tselect ADK_KPACKAGE_%s\n", toupperstr(val));
+						else
+							fprintf(cfg, "\tselect ADK_PACKAGE_%s\n", toupperstr(val));
 						val = strtok_r(NULL, " ", &saveptr);
 					}
 				}
@@ -708,7 +711,10 @@ int main() {
 						if (result == 1) {
 							val = strtok_r(hvalue, " ", &saveptr);
 							while (val != NULL) { 
-								fprintf(cfg, "\tselect ADK_PACKAGE_%s\n", toupperstr(val));
+								if (strncmp(val, "kmod", 4) == 0)
+									fprintf(cfg, "\tselect ADK_KPACKAGE_%s\n", toupperstr(val));
+								else
+									fprintf(cfg, "\tselect ADK_PACKAGE_%s\n", toupperstr(val));
 								val = strtok_r(NULL, " ", &saveptr);
 							}
 						}
@@ -745,7 +751,10 @@ int main() {
 						if (result == 1) {
 							val = strtok_r(hvalue, " ", &saveptr);
 							while (val != NULL) { 
-								fprintf(cfg, "\tselect ADK_PACKAGE_%s\n", toupperstr(val));
+								if (strncmp(val, "kmod", 4) == 0)
+									fprintf(cfg, "\tselect ADK_KPACKAGE_%s\n", toupperstr(val));
+								else
+									fprintf(cfg, "\tselect ADK_PACKAGE_%s\n", toupperstr(val));
 								val = strtok_r(NULL, " ", &saveptr);
 							}
 						}