From e1e49f90e89e507d6917092ac88602641d696e7a Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 26 Feb 2008 01:31:47 -0500 Subject: Add console_init udev helper. This helper: - sets the keyboard mode - sets the console mode - sets the console font - sets the keyboard map based on configuration in /etc/sysconfig/keyboard and /etc/sysconfig/i18n. This allows us to remove various cruft from rc.sysinit and /etc/profile.d/lang.sh. --- src/Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile index df4f6bd4..5c23a8fe 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,8 +1,10 @@ CFLAGS+=$(RPM_OPT_FLAGS) -Wall -D_GNU_SOURCE PROGS=usernetctl doexec netreport testd usleep ipcalc initlog \ - fstab-decode getkey ppp-watch consoletype genhostid rename_device + fstab-decode getkey ppp-watch consoletype genhostid rename_device \ + console_init PPPWATCH_OBJS=ppp-watch.o shvar.o +CONSOLE_INIT_OBJS=console_init.o shvar.o INITLOG_OBJS=initlog.o process.o USLEEP_OBJS=usleep.o @@ -27,6 +29,7 @@ install: install -m 755 ppp-watch $(ROOT)/sbin/ppp-watch install -m 755 consoletype $(ROOT)/sbin/consoletype install -m 755 rename_device $(ROOT)/lib/udev/rename_device + install -m 755 console_init $(ROOT)/lib/udev/console_init install -m 755 ccw_init $(ROOT)/lib/udev/ccw_init install -m 644 initlog.1 $(ROOT)$(mandir)/man1 install -m 644 genhostid.1 $(ROOT)$(mandir)/man1 @@ -79,3 +82,9 @@ rename_device: rename_device.c kmodule: kmodule.o $(CC) $(LDFLAGS) -o $@ $< -lpopt -lkudzu -lpci + +console_init.o: console_init.c + $(CC) $(CFLAGS) `pkg-config glib-2.0 --cflags` -c console_init.c -o console_init.o + +console_init: $(CONSOLE_INIT_OBJS) + $(CC) $(LDFLAGS) -o $@ $(CONSOLE_INIT_OBJS) `pkg-config glib-2.0 --libs` -- cgit v1.2.1