net: Add timestamps to the netlog
[akaros.git] / kern / src / Kbuild
index f4cb602..b0b94cc 100644 (file)
@@ -1,12 +1,3 @@
-
-$(src)/error.c: $(AKAROS_ROOT)/include/ros/errno.h
-       @echo "// This file was automatically generated not edit" > $(@)
-       @echo ""                               >> $(@)
-       @echo "const char *errno_strings[] = {" >> $(@)
-       @cat $(^) | $(AKAROS_ROOT)/scripts/parse_errno.sh >> $(@)
-       @echo "};"                             >> $(@)
-       @echo "const int MAX_ERRNO = sizeof(errno_strings)/sizeof(errno_strings[0]);" >> $(@)
-
 $(src)/build_info.cid:
        @echo `git rev-parse HEAD` > $(src)/build_info.cid.tmp
        @if [ ! -f $(src)/build_info.cid ] || \
@@ -15,38 +6,32 @@ $(src)/build_info.cid:
        @rm -f $(src)/build_info.cid.tmp
 
 $(src)/build_info.c: $(src)/build_info.cid
-ifeq ($(BUILD_INFO_FILE),)
-               @echo "/* Automatically generated. DO NOT EDIT! */" > $(@)
-               @echo "" >> $(@)
-               @echo "const char build_info_kernel_path[] = { \"$(KERNEL_ELF_PATH)\" };"\
-                       >> $(@)
-               @echo "const char build_info_date[] = { \"`date`\" };"\
-                       >> $(@)
-               @echo "const char build_info_host[] = { \"`hostname`\" };"\
-                       >> $(@)
-               @echo "const char build_info_commitid[] = { \"`cat $(src)/build_info.cid`\" };"\
-                       >> $(@)
-               @echo "const char build_info_version[] = { \"$(KERNELVERSION)\" };"\
-                       >> $(@)
-               @echo "const char build_info_version_name[] = { \"$(VERNAME)\" };"\
-                       >> $(@)
-else
-               cp $(BUILD_INFO_FILE) $(@)
-endif
+       @echo "/* Automatically generated. DO NOT EDIT! */" > $(@)
+       @echo "" >> $(@)
+       @echo "const char build_info_date[] = { \"`date`\" };"\
+               >> $(@)
+       @echo "const char build_info_commitid[] = { \"`cat $(src)/build_info.cid`\" };"\
+               >> $(@)
+       @echo "const char build_info_version[] = { \"$(KERNELVERSION)\" };"\
+               >> $(@)
+       @echo "const char build_info_version_name[] = { \"$(VERNAME)\" };"\
+               >> $(@)
+
+$(src)/kconfig_info.c: .config
+       @scripts/make_kconfig_info.sh $< $@
 
-clean-files += build_info.c build_info.cid error.c
+clean-files += build_info.c build_info.cid kconfig_info.c
 
 obj-y                                          += alarm.o
 obj-y                                          += apipe.o
+obj-y                                          += arena.o
 obj-y                                          += arsc.o
 obj-y                                          += atomic.o
 obj-y                                          += bitmap.o
 obj-y                                          += blockdev.o
 obj-y                                          += build_info.o
 obj-y                                          += ceq.o
-obj-y                                          += colored_caches.o
 obj-y                                          += completion.o
-obj-y                                          += console.o
 obj-y                                          += coreprov.o
 obj-y                                          += ctype.o
 obj-y                                          += devfs.o
@@ -54,7 +39,6 @@ obj-y                                         += dmapool.o
 obj-y                                          += elf.o
 obj-y                                          += env.o
 obj-y                                          += err.o
-obj-y                                          += error.o
 obj-$(CONFIG_ETH_AUDIO)                += eth_audio.o
 obj-y                                          += event.o
 obj-y                                          += ext2fs.o
@@ -67,6 +51,7 @@ obj-y                                         += frontend.o
 obj-y                                          += hashtable.o
 obj-y                                          += hexdump.o
 obj-y                                          += init.o
+obj-y                                          += kconfig_info.o
 obj-y                                          += kdebug.o
 obj-y                                          += kfs.o
 obj-y                                          += kmalloc.o