Skip to content

Commit 5a6f8d2

Browse files
committed
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>
1 parent 8425038 commit 5a6f8d2

17 files changed

Lines changed: 9 additions & 76 deletions

‎scripts/kconfig/Makefile‎

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ mconf-objs := mconf.o zconf.tab.o $(lxdialog)
170170
nconf-objs := nconf.o zconf.tab.o nconf.gui.o
171171
kxgettext-objs := kxgettext.o zconf.tab.o
172172
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
175175

176176
hostprogs-y := conf
177177

@@ -203,7 +203,7 @@ ifeq ($(gconf-target),1)
203203
hostprogs-y += gconf
204204
endif
205205

206-
clean-files := lkc_defs.h qconf.moc .tmp_qtcheck .tmp_gtkcheck
206+
clean-files := qconf.moc .tmp_qtcheck .tmp_gtkcheck
207207
clean-files += zconf.tab.c lex.zconf.c zconf.hash.c gconf.glade.h
208208
clean-files += mconf qconf gconf nconf
209209
clean-files += config.pot linux.pot
@@ -223,12 +223,11 @@ HOST_EXTRACFLAGS += $(shell $(CONFIG_SHELL) $(srctree)/$(src)/check.sh $(HOSTCC)
223223
HOSTCFLAGS_lex.zconf.o := -I$(src)
224224
HOSTCFLAGS_zconf.tab.o := -I$(src)
225225

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)
228228

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`
232231

233232
HOSTLOADLIBES_mconf = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC))
234233

@@ -318,18 +317,11 @@ endif
318317

319318
$(obj)/zconf.tab.o: $(obj)/lex.zconf.c $(obj)/zconf.hash.c
320319

321-
$(obj)/kconfig_load.o: $(obj)/lkc_defs.h
322-
323-
$(obj)/qconf.o: $(obj)/qconf.moc $(obj)/lkc_defs.h
324-
325-
$(obj)/gconf.o: $(obj)/lkc_defs.h
320+
$(obj)/qconf.o: $(obj)/qconf.moc
326321

327322
$(obj)/%.moc: $(src)/%.h
328323
$(KC_QT_MOC) -i $< -o $@
329324

330-
$(obj)/lkc_defs.h: $(src)/lkc_proto.h
331-
$(Q)sed < $< > $@ 's/P(\([^,]*\),.*/#define \1 (\*\1_p)/'
332-
333325
# Extract gconf menu items for I18N support
334326
$(obj)/gconf.glade.h: $(obj)/gconf.glade
335327
$(Q)intltool-extract --type=gettext/glade --srcdir=$(srctree) \

‎scripts/kconfig/conf.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#include <sys/stat.h>
1515
#include <sys/time.h>
1616

17-
#define LKC_DIRECT_LINK
1817
#include "lkc.h"
1918

2019
static void conf(struct menu *menu);

‎scripts/kconfig/confdata.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#include <time.h>
1515
#include <unistd.h>
1616

17-
#define LKC_DIRECT_LINK
1817
#include "lkc.h"
1918

2019
static void conf_warning(const char *fmt, ...)

‎scripts/kconfig/expr.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#include <stdlib.h>
88
#include <string.h>
99

10-
#define LKC_DIRECT_LINK
1110
#include "lkc.h"
1211

1312
#define DEBUG_EXPR 0

‎scripts/kconfig/gconf.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1507,10 +1507,6 @@ int main(int ac, char *av[])
15071507
char *env;
15081508
gchar *glade_file;
15091509

1510-
#ifndef LKC_DIRECT_LINK
1511-
kconfig_load();
1512-
#endif
1513-
15141510
bindtextdomain(PACKAGE, LOCALEDIR);
15151511
bind_textdomain_codeset(PACKAGE, "UTF-8");
15161512
textdomain(PACKAGE);

‎scripts/kconfig/kconfig_load.c‎

Lines changed: 0 additions & 35 deletions
This file was deleted.

‎scripts/kconfig/kxgettext.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#include <stdlib.h>
88
#include <string.h>
99

10-
#define LKC_DIRECT_LINK
1110
#include "lkc.h"
1211

1312
static char *escape(const char* text, char *bf, int len)

‎scripts/kconfig/lex.zconf.c_shipped‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,6 @@ char *zconftext;
785785
#include <string.h>
786786
#include <unistd.h>
787787

788-
#define LKC_DIRECT_LINK
789788
#include "lkc.h"
790789

791790
#define START_STRSIZE 16

‎scripts/kconfig/lkc.h‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,7 @@ static inline char *bind_textdomain_codeset(const char *dn, char *c) { return c;
2121
extern "C" {
2222
#endif
2323

24-
#ifdef LKC_DIRECT_LINK
2524
#define P(name,type,arg) extern type name arg
26-
#else
27-
#include "lkc_defs.h"
28-
#define P(name,type,arg) extern type (*name ## _p) arg
29-
#endif
3025
#include "lkc_proto.h"
3126
#undef P
3227

‎scripts/kconfig/mconf.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#include <unistd.h>
1919
#include <locale.h>
2020

21-
#define LKC_DIRECT_LINK
2221
#include "lkc.h"
2322
#include "lxdialog/dialog.h"
2423

0 commit comments

Comments
 (0)