Skip to content

Commit

Permalink
kern: Update freestanding-headers to freestnd-c-hdrs-0bsd
Browse files Browse the repository at this point in the history
  • Loading branch information
mintsuki committed Sep 13, 2024
1 parent 50bb13e commit 4d23c12
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion kernel/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/freestanding-headers
/freestnd-c-hdrs-0bsd
/c/cc-runtime.c
/c/flanterm
/c/printf
Expand Down
6 changes: 3 additions & 3 deletions kernel/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ $(call USER_VARIABLE,VINIX_PROD,)

# Ensure the dependencies have been obtained.
ifneq ($(shell ( test '$(MAKECMDGOALS)' = clean || test '$(MAKECMDGOALS)' = distclean ) && echo 1),1)
ifeq ($(shell ( ! test -d freestanding-headers || ! test -f c/cc-runtime.c || ! test -d c/flanterm || ! test -f c/printf/printf.c || ! test -f c/printf/printf.h ) && echo 1),1)
ifeq ($(shell ( ! test -d freestnd-c-hdrs-0bsd || ! test -f c/cc-runtime.c || ! test -d c/flanterm || ! test -f c/printf/printf.c || ! test -f c/printf/printf.h ) && echo 1),1)
$(error Please run the ./get-deps script first)
endif
endif
Expand Down Expand Up @@ -81,7 +81,7 @@ override KCFLAGS += \
override KCPPFLAGS := \
-I c \
$(KCPPFLAGS) \
-isystem freestanding-headers \
-isystem freestnd-c-hdrs-0bsd \
-MMD \
-MP

Expand Down Expand Up @@ -166,7 +166,7 @@ clean:
# Remove everything built and generated including downloaded dependencies.
.PHONY: distclean
distclean: clean
rm -rf freestanding-headers c/cc-runtime.c c/flanterm c/printf
rm -rf freestnd-c-hdrs-0bsd c/cc-runtime.c c/flanterm c/printf

# Install the final built executable to its final on-root location.
.PHONY: install
Expand Down
6 changes: 3 additions & 3 deletions kernel/get-deps
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ download_by_hash() {

if ! test -f version; then
clone_repo_commit \
https://github.com/osdev0/freestanding-headers.git \
freestanding-headers \
f890bb927859719061fe020119f3d5439d90aecf
https://github.com/osdev0/freestnd-c-hdrs-0bsd.git \
freestnd-c-hdrs-0bsd \
0353851fdebe0eb6a4d2c608c5393040d310bf35

download_by_hash \
https://github.com/osdev0/cc-runtime/raw/dcdf5d82973e77edee597a047a3ef66300903de9/cc-runtime.c \
Expand Down

0 comments on commit 4d23c12

Please sign in to comment.