History

kdb: Get rid of broken attempt to print CCVERSION in kdb summary

If you drop into kdb and type "summary", it prints out a line that says this: ccversion CCVERSION ...and I don't mean that it actually prints out the version of the C compiler. It literally prints out the string "CCVERSION". The version of the C Compiler is already printed at boot up and it doesn't seem useful to replicate this in kdb. Let's just delete it. We can also delete the bit of the Makefile that called the C compiler in an attempt to pass this into kdb. This will remove one extra call to the C compiler at Makefile parse time and (very slightly) speed up builds.

Douglas Anderson committed 7 years ago

Commit ecebc5c1 parent 976643a2 files · +0 −2Browse files

Showing the changes to kernel/debug (2 of 2 files). Show all

Unified · Split

2 files
  1. kernel/debug/kdb/Makefile +0 −1
  2. kernel/debug/kdb/kdb_main.c +0 −1
kernel/debug/kdb/Makefile+0−1
@@ -6,7 +6,6 @@ · 5 unmodified lines
6# Copyright (c) 2009 Wind River Systems, Inc. All Rights Reserved.6# Copyright (c) 2009 Wind River Systems, Inc. All Rights Reserved.
7#7#
8 8
9CCVERSION := $(shell $(CC) -v 2>&1 | sed -ne '$$p')
10obj-y := kdb_io.o kdb_main.o kdb_support.o kdb_bt.o gen-kdb_cmds.o kdb_bp.o kdb_debugger.o9obj-y := kdb_io.o kdb_main.o kdb_support.o kdb_bt.o gen-kdb_cmds.o kdb_bp.o kdb_debugger.o
11obj-$(CONFIG_KDB_KEYBOARD) += kdb_keyboard.o10obj-$(CONFIG_KDB_KEYBOARD) += kdb_keyboard.o
12 11
kernel/debug/kdb/kdb_main.c+0−1
@@ -2522,7 +2522,6 @@ static int kdb_summary(int argc, const char **argv) · 2521 unmodified lines
2522 kdb_printf("machine %s\n", init_uts_ns.name.machine);2522 kdb_printf("machine %s\n", init_uts_ns.name.machine);
2523 kdb_printf("nodename %s\n", init_uts_ns.name.nodename);2523 kdb_printf("nodename %s\n", init_uts_ns.name.nodename);
2524 kdb_printf("domainname %s\n", init_uts_ns.name.domainname);2524 kdb_printf("domainname %s\n", init_uts_ns.name.domainname);
2525 kdb_printf("ccversion %s\n", __stringify(CCVERSION));
2526 2525
2527 now = __ktime_get_real_seconds();2526 now = __ktime_get_real_seconds();
2528 time64_to_tm(now, 0, &tm);2527 time64_to_tm(now, 0, &tm);