git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update readme for more up-to-date information
[lunaix-os.git]
/
lunaix-os
/
kernel.mk
diff --git
a/lunaix-os/kernel.mk
b/lunaix-os/kernel.mk
index 1c07c908c0ca53730e7d5dfd888eee7513ae9df0..ba15fa37834e9d35ba2b2460c66b929c8f653233 100644
(file)
--- a/
lunaix-os/kernel.mk
+++ b/
lunaix-os/kernel.mk
@@
-4,7
+4,6
@@
include toolchain.mkinc
define ksrc_dirs
kernel
hal
define ksrc_dirs
kernel
hal
- debug
libs
arch/$(ARCH)
endef
libs
arch/$(ARCH)
endef
@@
-21,6
+20,7
@@
kbin := $(BUILD_NAME)
ksrc_files := $(foreach f, $(ksrc_dirs), $(shell find $(f) -name "*.[cS]"))
ksrc_objs := $(addsuffix .o,$(ksrc_files))
ksrc_files := $(foreach f, $(ksrc_dirs), $(shell find $(f) -name "*.[cS]"))
ksrc_objs := $(addsuffix .o,$(ksrc_files))
+ksrc_deps := $(addsuffix .d,$(ksrc_files))
kinc_opts := $(addprefix -I,$(kinc_dirs))
kinc_opts := $(addprefix -I,$(kinc_dirs))
@@
-35,11
+35,16
@@
CFLAGS += -include flags.h
$(call status_,CC,$<)
@$(CC) $(CFLAGS) $(kinc_opts) -c $< -o $@
$(call status_,CC,$<)
@$(CC) $(CFLAGS) $(kinc_opts) -c $< -o $@
-$(kbin): $(k
src_objs) $(kbin_dir
)
+$(kbin): $(k
bin_dir) $(ksrc_files) $(ksrc_objs
)
$(call status_,LD,$@)
@$(CC) -T link/linker.ld -o $(kbin) $(ksrc_objs) $(LDFLAGS)
$(call status_,LD,$@)
@$(CC) -T link/linker.ld -o $(kbin) $(ksrc_objs) $(LDFLAGS)
-all: $(kbin)
+$(kbin_dir)/modksyms: $(kbin)
+ $(call status_,GEN,$@)
+ @$(PY) scripts/syms_export.py --bits=32 --order=little -o "$@" "$<"
+
+all: $(kbin) $(kbin_dir)/modksyms
clean:
clean:
- @rm -f $(ksrc_objs)
\ No newline at end of file
+ @rm -f $(ksrc_objs)
+ @rm -f $(ksrc_deps)
\ No newline at end of file