<commit_before>
# core.kernel package is always available.
# There is no need to add it's mods to dependency list of your mods.
$_PACKAGE := core.kernel

$_CPPFLAGS += -D__KERNEL__
#TODO mb-gcc doesn't recognize multiple -T flag
#$_LDFLAGS  += -T $($_SELFDIR)/nosys.lds
$_LDFLAGS  += $($_SELFDIR)/nosys.lds

$(IMAGE): $($_SELFDIR)/nosys.lds

$_MODS_CORE += main
# TODO too more mods fro core.kernel
$_MODS += irq timer printk softirq job elf drv_subsys

$_SRCS-main += main.c
$_SRCS-main += init.c
$_SRCS-main += nosys.c
$_SRCS-job += job.c
$_DEPS-main += embox.hal.arch
$_DEPS-main += irq
$_DEPS-main += timer
$_DEPS-main += printk
$_DEPS-main += softirq

ifdef CONFIG_THREAD
$_DEPS-main += core.kernel.threads.core
endif

ifdef CONFIG_MMU_SUPPORT
$_DEPS-main += embox.hal.mm.mmu
endif

ifdef CONFIG_IRQ
  $_SRCS-irq     += irq.c
  $_DEPS-irq     += embox.hal.interrupt
  $_DEPS-irq     += softirq
endif
ifdef CONFIG_PRINTK
  $_SRCS-printk  += printk.c
  #$_SRCS-printk  += printk/putchar.c ../lib/stdio/printf.c
  $_SRCS-printk  += printk/putchar.c printk/printf.c
  $_DEPS-printk  += embox.driver.abstract.mod_diag
endif
ifdef CONFIG_SOFTIRQ
  $_SRCS-softirq += softirq.c
endif
ifdef CONFIG_TIMER
  $_SRCS-timer   += timer.c
  $_DEPS-timer   += embox.hal.clock
endif
ifdef CONFIG_ELF
  $_DEPS-main += elf
  $_SRCS-elf += elf_executer.c
endif
ifdef CONFIG_DRIVER_SUBSYSTEM
# It's core.kernel.drv_subsys
  $_MODS += drv_subsys
  $_SRCS-drv_subsys += driver.c
  $_DEPS-drv_subsys += embox.hal.mm.kmalloc
endif

ifdef CONFIG_WATCHDOG
  $_DEPS-main += embox.driver.abstract.watchdog
endif

$_DEPS-main += embox.test.olimex_blinking_led<commit_msg>little ugly fix in kernel makefile<commit_after>
# core.kernel package is always available.
# There is no need to add it's mods to dependency list of your mods.
$_PACKAGE := core.kernel

$_CPPFLAGS += -D__KERNEL__
#TODO mb-gcc doesn't recognize multiple -T flag
#$_LDFLAGS  += -T $($_SELFDIR)/nosys.lds
$_LDFLAGS  += $($_SELFDIR)/nosys.lds

$(IMAGE): $($_SELFDIR)/nosys.lds

$_MODS_CORE += main
# TODO too more mods fro core.kernel
$_MODS += irq timer printk softirq job elf drv_subsys

$_SRCS-main += main.c
$_SRCS-main += init.c
$_SRCS-main += nosys.c
$_SRCS-job += job.c
$_DEPS-main += embox.hal.arch
$_DEPS-main += irq
$_DEPS-main += timer
$_DEPS-main += printk
$_DEPS-main += softirq

ifdef CONFIG_THREAD
$_DEPS-main += core.kernel.threads.core
endif

ifdef CONFIG_MMU_SUPPORT
$_DEPS-main += embox.hal.mm.mmu
endif

ifdef CONFIG_IRQ
  $_SRCS-irq     += irq.c
  $_DEPS-irq     += embox.hal.interrupt
  $_DEPS-irq     += softirq
endif
ifdef CONFIG_PRINTK
  $_SRCS-printk  += printk.c
  #$_SRCS-printk  += printk/putchar.c ../lib/stdio/printf.c
  $_SRCS-printk  += printk/putchar.c printk/printf.c
  $_DEPS-printk  += embox.driver.abstract.mod_diag
endif
ifdef CONFIG_SOFTIRQ
  $_SRCS-softirq += softirq.c
endif
ifdef CONFIG_TIMER
  $_SRCS-timer   += timer.c
  $_DEPS-timer   += embox.hal.clock
endif
ifdef CONFIG_ELF
  $_DEPS-main += elf
  $_SRCS-elf += elf_executer.c
endif
ifdef CONFIG_DRIVER_SUBSYSTEM
# It's core.kernel.drv_subsys
  $_MODS += drv_subsys
  $_SRCS-drv_subsys += driver.c
  $_DEPS-drv_subsys += embox.hal.mm.kmalloc
endif

ifdef CONFIG_WATCHDOG
  $_DEPS-main += embox.driver.abstract.watchdog
endif

$_DEPS-main += olimex.test.blinking_led
{'fraction_non_alphanumeric': 0.13313161875945537, 'fraction_numerical': 0.0, 'mean_word_length': 3.963963963963964, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6570360', 'n_tokens_mistral': 1297, 'n_tokens_neox': 1289, 'n_words': 286}