Browse Source

pkgmaker: fix kernel depends

Waldemar Brodkorb 6 năm trước cách đây
mục cha
commit
5028a8c910
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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);