1
0
mirror of https://github.com/taigrr/gopher-os synced 2025-01-18 04:43:13 -08:00

Move Kmain into its own package

This allows us to keep the error definition in the kernel package
without causing circular import errors
This commit is contained in:
Achilleas Anagnostopoulos
2017-05-31 15:07:02 +01:00
parent d5a4c43406
commit ec6ce4b70e
3 changed files with 4 additions and 4 deletions

View File

@@ -52,7 +52,7 @@ go.o:
@# with slashes we create a global symbol alias for kernel.Kmain
@echo "[objcopy] creating global symbol alias 'kernel.Kmain' for 'github.com/achilleasa/gopher-os/kernel.Kmain' in go.o"
@objcopy \
--add-symbol kernel.Kmain=.text:0x`nm $(BUILD_DIR)/go.o | grep "kernel.Kmain$$" | cut -d' ' -f1` \
--add-symbol kernel.Kmain=.text:0x`nm $(BUILD_DIR)/go.o | grep "kmain.Kmain$$" | cut -d' ' -f1` \
$(BUILD_DIR)/go.o $(BUILD_DIR)/go.o
binutils_version_check: