Browse Source

pkgmaker: fix kernel depends

Waldemar Brodkorb 6 years ago
parent
commit
5028a8c910
1 changed files with 2 additions and 1 deletions
  1. 2 1
      adk/tools/pkgmaker.c

+ 2 - 1
adk/tools/pkgmaker.c

@@ -941,7 +941,8 @@ int main() {
 				if (pkg_kdepends != NULL) {
 					token = strtok(pkg_kdepends, " ");
 					while (token != NULL) {
-						fprintf(cfg, "\tselect ADK_KERNEL_%s m\n", toupperstr(token));
+						fprintf(cfg, "\tselect ADK_LINUX_KERNEL_%s m if ADK_TARGET_OS_LINUX\n", toupperstr(token));
+						fprintf(cfg, "\tselect ADK_WALDUX_KERNEL_%s m if ADK_TARGET_OS_WALDUX\n", toupperstr(token));
 						token = strtok(NULL, " ");
 					}
 					free(pkg_kdepends);