-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
1 parent
efb7bda
commit a73b7dc
Showing
7 changed files
with
48 additions
and
7 deletions.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| // | ||
| // startup_bootfs.c | ||
| // bootfs.c | ||
| // kernel | ||
| // | ||
| // Created by Dietmar Planitzer on 2/4/21. | ||
|
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| // | ||
| // startup.c | ||
| // main.c | ||
| // kernel | ||
| // | ||
| // Created by Dietmar Planitzer on 2/4/21. | ||
|
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| # -------------------------------------------------------------------------- | ||
| # Build variables | ||
| # | ||
|
|
||
| BOOT_C_SOURCES := $(wildcard $(BOOT_SOURCES_DIR)/*.c) | ||
| BOOT_ASM_SOURCES := $(wildcard $(BOOT_SOURCES_DIR)/*.s) | ||
|
|
||
| BOOT_OBJS := $(patsubst $(BOOT_SOURCES_DIR)/%.c,$(BOOT_OBJS_DIR)/%.o,$(BOOT_C_SOURCES)) | ||
| BOOT_DEPS := $(BOOT_OBJS:.o=.d) | ||
| BOOT_OBJS += $(patsubst $(BOOT_SOURCES_DIR)/%.s,$(BOOT_OBJS_DIR)/%.o,$(BOOT_ASM_SOURCES)) | ||
|
|
||
| BOOT_C_INCLUDES := -I$(LIBSYSTEM_HEADERS_DIR) -I$(KERNEL_SOURCES_DIR) -I$(BOOT_SOURCES_DIR) | ||
| BOOT_ASM_INCLUDES := -I$(LIBSYSTEM_HEADERS_DIR) -I$(KERNEL_SOURCES_DIR) -I$(BOOT_SOURCES_DIR) | ||
|
|
||
| #BOOT_GENERATE_DEPS = -deps -depfile=$(patsubst $(BOOT_OBJS_DIR)/%.o,$(BOOT_OBJS_DIR)/%.d,$@) | ||
| BOOT_GENERATE_DEPS := | ||
|
|
||
|
|
||
| # -------------------------------------------------------------------------- | ||
| # Build rules | ||
| # | ||
|
|
||
| $(BOOT_OBJS): | $(BOOT_OBJS_DIR) | ||
|
|
||
| $(BOOT_OBJS_DIR): | ||
| $(call mkdir_if_needed,$(BOOT_OBJS_DIR)) | ||
|
|
||
| -include $(BOOT_DEPS) | ||
|
|
||
| $(BOOT_OBJS_DIR)/%.o : $(BOOT_SOURCES_DIR)/%.c | ||
| @echo $< | ||
| @$(CC) $(KERNEL_CC_CONFIG) $(CC_KOPT_SETTING) $(CC_GEN_DEBUG_INFO) $(KERNEL_CC_PREPROC_DEFS) $(BOOT_C_INCLUDES) $(KERNEL_CC_DONTWARN) $(BOOT_GENERATE_DEPS) -o $@ $< | ||
|
|
||
| $(BOOT_OBJS_DIR)/%.o : $(BOOT_SOURCES_DIR)/%.s | ||
| @echo $< | ||
| @$(AS) $(KERNEL_ASM_CONFIG) $(BOOT_ASM_INCLUDES) $(KERNEL_AS_DONTWARN) -o $@ $< |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters