summaryrefslogtreecommitdiff
path: root/adk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-09-19 14:15:06 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-09-26 17:22:17 +0200
commit0b263c8970d9f03f18ce946adaf2d3a023a8ad99 (patch)
treeb567f0f23338ab6af0191bfaae7357d2ffb5a5e0 /adk
parentbef00bf2d0fda4f70b232d2199708715786a7c79 (diff)
enable support for kernel dependencies in subpackages
Diffstat (limited to 'adk')
-rw-r--r--adk/tools/pkgmaker.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/adk/tools/pkgmaker.c b/adk/tools/pkgmaker.c
index 81d33d13d..ae73ee848 100644
--- a/adk/tools/pkgmaker.c
+++ b/adk/tools/pkgmaker.c
@@ -1,7 +1,7 @@
/*
* pkgmaker - create package meta-data for OpenADK buildsystem
*
- * Copyright (C) 2010-2015 Waldemar Brodkorb <wbx@openadk.org>
+ * Copyright (C) 2010-2016 Waldemar Brodkorb <wbx@openadk.org>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -603,6 +603,8 @@ int main() {
continue;
if ((parse_var_hash(buf, "PKGSC_", pkgmap)) == 0)
continue;
+ if ((parse_var_hash(buf, "PKGSK_", pkgmap)) == 0)
+ continue;
if ((parse_var_hash(buf, "PKGSN_", pkgmap)) == 0)
continue;
}
@@ -803,6 +805,20 @@ int main() {
}
memset(hkey, 0, MAXVAR);
+ /* add sub package kernel selections */
+ strncat(hkey, "PKGSK_", 6);
+ strncat(hkey, toupperstr(token), strlen(token));
+ memset(hvalue, 0, MAXVALUE);
+ result = strmap_get(pkgmap, hkey, hvalue, sizeof(hvalue));
+ if (result == 1) {
+ val = strtok_r(hvalue, " ", &saveptr);
+ while (val != NULL) {
+ fprintf(cfg, "\tselect ADK_KERNEL_%s\n", toupperstr(val));
+ val = strtok_r(NULL, " ", &saveptr);
+ }
+ }
+ memset(hkey, 0, MAXVAR);
+
/* create package target system dependency information */
if (pkg_system_depends != NULL) {
pkg_helper = strdup(pkg_system_depends);