Commit 5a6f8d2bd9e3392569ed6f29ea4d7210652f929b
1 parent
84250386ef
Exists in
master
and in
20 other branches
kconfig: nuke LKC_DIRECT_LINK cruft
This interface is not (and has never been ?) used by any frontend, just get rid of it. Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
Showing 17 changed files with 9 additions and 76 deletions Side-by-side Diff
- scripts/kconfig/Makefile
- scripts/kconfig/conf.c
- scripts/kconfig/confdata.c
- scripts/kconfig/expr.c
- scripts/kconfig/gconf.c
- scripts/kconfig/kconfig_load.c
- scripts/kconfig/kxgettext.c
- scripts/kconfig/lex.zconf.c_shipped
- scripts/kconfig/lkc.h
- scripts/kconfig/mconf.c
- scripts/kconfig/menu.c
- scripts/kconfig/nconf.c
- scripts/kconfig/qconf.cc
- scripts/kconfig/symbol.c
- scripts/kconfig/zconf.l
- scripts/kconfig/zconf.tab.c_shipped
- scripts/kconfig/zconf.y
scripts/kconfig/Makefile
... | ... | @@ -170,8 +170,8 @@ |
170 | 170 | nconf-objs := nconf.o zconf.tab.o nconf.gui.o |
171 | 171 | kxgettext-objs := kxgettext.o zconf.tab.o |
172 | 172 | qconf-cxxobjs := qconf.o |
173 | -qconf-objs := kconfig_load.o zconf.tab.o | |
174 | -gconf-objs := gconf.o kconfig_load.o zconf.tab.o | |
173 | +qconf-objs := zconf.tab.o | |
174 | +gconf-objs := gconf.o zconf.tab.o | |
175 | 175 | |
176 | 176 | hostprogs-y := conf |
177 | 177 | |
... | ... | @@ -203,7 +203,7 @@ |
203 | 203 | hostprogs-y += gconf |
204 | 204 | endif |
205 | 205 | |
206 | -clean-files := lkc_defs.h qconf.moc .tmp_qtcheck .tmp_gtkcheck | |
206 | +clean-files := qconf.moc .tmp_qtcheck .tmp_gtkcheck | |
207 | 207 | clean-files += zconf.tab.c lex.zconf.c zconf.hash.c gconf.glade.h |
208 | 208 | clean-files += mconf qconf gconf nconf |
209 | 209 | clean-files += config.pot linux.pot |
210 | 210 | |
... | ... | @@ -223,12 +223,11 @@ |
223 | 223 | HOSTCFLAGS_lex.zconf.o := -I$(src) |
224 | 224 | HOSTCFLAGS_zconf.tab.o := -I$(src) |
225 | 225 | |
226 | -HOSTLOADLIBES_qconf = $(KC_QT_LIBS) -ldl | |
227 | -HOSTCXXFLAGS_qconf.o = $(KC_QT_CFLAGS) -D LKC_DIRECT_LINK | |
226 | +HOSTLOADLIBES_qconf = $(KC_QT_LIBS) | |
227 | +HOSTCXXFLAGS_qconf.o = $(KC_QT_CFLAGS) | |
228 | 228 | |
229 | -HOSTLOADLIBES_gconf = `pkg-config --libs gtk+-2.0 gmodule-2.0 libglade-2.0` -ldl | |
230 | -HOSTCFLAGS_gconf.o = `pkg-config --cflags gtk+-2.0 gmodule-2.0 libglade-2.0` \ | |
231 | - -D LKC_DIRECT_LINK | |
229 | +HOSTLOADLIBES_gconf = `pkg-config --libs gtk+-2.0 gmodule-2.0 libglade-2.0` | |
230 | +HOSTCFLAGS_gconf.o = `pkg-config --cflags gtk+-2.0 gmodule-2.0 libglade-2.0` | |
232 | 231 | |
233 | 232 | HOSTLOADLIBES_mconf = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC)) |
234 | 233 | |
235 | 234 | |
236 | 235 | |
... | ... | @@ -318,17 +317,10 @@ |
318 | 317 | |
319 | 318 | $(obj)/zconf.tab.o: $(obj)/lex.zconf.c $(obj)/zconf.hash.c |
320 | 319 | |
321 | -$(obj)/kconfig_load.o: $(obj)/lkc_defs.h | |
320 | +$(obj)/qconf.o: $(obj)/qconf.moc | |
322 | 321 | |
323 | -$(obj)/qconf.o: $(obj)/qconf.moc $(obj)/lkc_defs.h | |
324 | - | |
325 | -$(obj)/gconf.o: $(obj)/lkc_defs.h | |
326 | - | |
327 | 322 | $(obj)/%.moc: $(src)/%.h |
328 | 323 | $(KC_QT_MOC) -i $< -o $@ |
329 | - | |
330 | -$(obj)/lkc_defs.h: $(src)/lkc_proto.h | |
331 | - $(Q)sed < $< > $@ 's/P(\([^,]*\),.*/#define \1 (\*\1_p)/' | |
332 | 324 | |
333 | 325 | # Extract gconf menu items for I18N support |
334 | 326 | $(obj)/gconf.glade.h: $(obj)/gconf.glade |
scripts/kconfig/conf.c
scripts/kconfig/confdata.c
scripts/kconfig/expr.c
scripts/kconfig/gconf.c
scripts/kconfig/kconfig_load.c
1 | -#include <dlfcn.h> | |
2 | -#include <stdio.h> | |
3 | -#include <stdlib.h> | |
4 | - | |
5 | -#include "lkc.h" | |
6 | - | |
7 | -#define P(name,type,arg) type (*name ## _p) arg | |
8 | -#include "lkc_proto.h" | |
9 | -#undef P | |
10 | - | |
11 | -void kconfig_load(void) | |
12 | -{ | |
13 | - void *handle; | |
14 | - char *error; | |
15 | - | |
16 | - handle = dlopen("./libkconfig.so", RTLD_LAZY); | |
17 | - if (!handle) { | |
18 | - handle = dlopen("./scripts/kconfig/libkconfig.so", RTLD_LAZY); | |
19 | - if (!handle) { | |
20 | - fprintf(stderr, "%s\n", dlerror()); | |
21 | - exit(1); | |
22 | - } | |
23 | - } | |
24 | - | |
25 | -#define P(name,type,arg) \ | |
26 | -{ \ | |
27 | - name ## _p = dlsym(handle, #name); \ | |
28 | - if ((error = dlerror())) { \ | |
29 | - fprintf(stderr, "%s\n", error); \ | |
30 | - exit(1); \ | |
31 | - } \ | |
32 | -} | |
33 | -#include "lkc_proto.h" | |
34 | -#undef P | |
35 | -} |
scripts/kconfig/kxgettext.c
scripts/kconfig/lex.zconf.c_shipped
scripts/kconfig/lkc.h
scripts/kconfig/mconf.c
scripts/kconfig/menu.c
scripts/kconfig/nconf.c
scripts/kconfig/qconf.cc
... | ... | @@ -1745,10 +1745,6 @@ |
1745 | 1745 | bindtextdomain(PACKAGE, LOCALEDIR); |
1746 | 1746 | textdomain(PACKAGE); |
1747 | 1747 | |
1748 | -#ifndef LKC_DIRECT_LINK | |
1749 | - kconfig_load(); | |
1750 | -#endif | |
1751 | - | |
1752 | 1748 | progname = av[0]; |
1753 | 1749 | configApp = new QApplication(ac, av); |
1754 | 1750 | if (ac > 1 && av[1][0] == '-') { |
scripts/kconfig/symbol.c
scripts/kconfig/zconf.l
scripts/kconfig/zconf.tab.c_shipped
-
mentioned in commit 70529b
-
mentioned in commit 70529b
-
mentioned in commit 70529b
-
mentioned in commit 70529b
-
mentioned in commit 70529b
-
mentioned in commit 70529b
-
mentioned in commit 70529b
-
mentioned in commit 70529b
-
mentioned in commit 70529b
-
mentioned in commit 70529b
-
mentioned in commit 70529b
-
mentioned in commit 70529b
-
mentioned in commit 70529b