summaryrefslogtreecommitdiff
path: root/package/config/kconfig_load.c
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2011-08-31 23:35:05 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2011-09-17 08:17:06 +0200
commit56da3859c770b83631ebae810dfb3024c1a9cbd2 (patch)
tree0f253485b64572a2ec87b6d91cd07f09d2fab652 /package/config/kconfig_load.c
parent59a326b934737483531c49c99acda7874c72e335 (diff)
support: move kconfig stuff from package/config to support/kconfig
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/config/kconfig_load.c')
-rw-r--r--package/config/kconfig_load.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/package/config/kconfig_load.c b/package/config/kconfig_load.c
deleted file mode 100644
index dbdcaad82..000000000
--- a/package/config/kconfig_load.c
+++ /dev/null
@@ -1,35 +0,0 @@
-#include <dlfcn.h>
-#include <stdio.h>
-#include <stdlib.h>
-
-#include "lkc.h"
-
-#define P(name,type,arg) type (*name ## _p) arg
-#include "lkc_proto.h"
-#undef P
-
-void kconfig_load(void)
-{
- void *handle;
- char *error;
-
- handle = dlopen("./libkconfig.so", RTLD_LAZY);
- if (!handle) {
- handle = dlopen("./scripts/kconfig/libkconfig.so", RTLD_LAZY);
- if (!handle) {
- fprintf(stderr, "%s\n", dlerror());
- exit(1);
- }
- }
-
-#define P(name,type,arg) \
-{ \
- name ## _p = dlsym(handle, #name); \
- if ((error = dlerror())) { \
- fprintf(stderr, "%s\n", error); \
- exit(1); \
- } \
-}
-#include "lkc_proto.h"
-#undef P
-}