Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Markus Duft
committed
Mar 20, 2014
1 parent
42d3356
commit 1c80aae
Showing
12 changed files
with
135 additions
and
109 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -3,6 +3,5 @@ | |
.build | ||
.package | ||
tools/.source | ||
tools/.build | ||
doc | ||
trace-* |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/* Copyright (c) 2011 by Markus Duft <mduft@gentoo.org> | ||
* This file is part of the 'tachyon' operating system. */ | ||
|
||
int main(void) { | ||
return 123; | ||
} |
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,48 @@ | ||
SOURCEDIR := $(abspath $(dir $(firstword $(MAKEFILE_LIST)))) | ||
BUILDDIR := $(SOURCEDIR)/.build/$(ARCH) | ||
|
||
SOURCES := \ | ||
$(wildcard $(SOURCEDIR)/src/*.c) \ | ||
$(wildcard $(SOURCEDIR)/src/*.S) \ | ||
$(wildcard $(SOURCEDIR)/src/$(ARCH)/*.c) \ | ||
$(wildcard $(SOURCEDIR)/src/$(ARCH)/*.S) \ | ||
$(wildcard $(SOURCEDIR)/src/contrib/*/*.c) \ | ||
$(KERNEL_ADD) | ||
|
||
CSOURCES := $(filter %.c,$(SOURCES)) | ||
SSOURCES := $(filter %.S,$(SOURCES)) | ||
|
||
COBJECTS := $(subst $(SOURCEDIR),$(BUILDDIR),$(CSOURCES:.c=.o)) | ||
SOBJECTS := $(subst $(SOURCEDIR),$(BUILDDIR),$(SSOURCES:.S=.o)) | ||
|
||
OBJECTS := $(COBJECTS) $(SOBJECTS) | ||
MAKE_BDIR = test -d "$(dir $@)" || mkdir -p "$(dir $@)" | ||
|
||
|
||
#.----------------------------------. | ||
#| General Template Rules | | ||
#'----------------------------------' | ||
|
||
include $(foreach mf,$(subst .o,.Po,$(OBJECTS)),$(wildcard $(mf))) | ||
|
||
$(COBJECTS): $(BUILDDIR)/%.o: $(SOURCEDIR)/%.c | ||
@-$(MAKE_BDIR) | ||
@if test $(VERBOSE) = 0; then \ | ||
echo "[CC ] $(subst $(SOURCEDIR)/,,$<)"; \ | ||
else \ | ||
echo "$(CC) $(KCFLAGS) -c -o \"$@\" \"$<\""; \ | ||
fi | ||
@$(CC) -MMD -MF "$(subst .o,.Po,$@)" -dA -dP -save-temps=obj $(KCFLAGS) -c -o "$@" "$<" | ||
|
||
$(SOBJECTS): $(BUILDDIR)/%.o: $(SOURCEDIR)/%.S | ||
@-$(MAKE_BDIR) | ||
@if test $(VERBOSE) = 0; then \ | ||
echo "[AS ] $(subst $(SOURCEDIR)/,,$<)"; \ | ||
else \ | ||
echo "$(CC) $(KCFLAGS) -D__ASM__ -c -o \"$@\" \"$<\""; \ | ||
fi | ||
@$(CC) -MMD -MF "$(subst .o,.Po,$@)" $(KCFLAGS) -D__ASM__ -c -o "$@" "$<" | ||
|
||
clean: | ||
@-rm -rf $(SOURCEDIR)/.build | ||
|
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,15 @@ | ||
# Copyright (c) 2011 by Markus Duft <mduft@gentoo.org> | ||
# This file is part of the 'tachyon' operating system. | ||
|
||
ARCH := x86_64 | ||
VERBOSE := 0 | ||
SHELL := bash | ||
MAKE := $(MAKE) --no-print-directory | ||
|
||
CONFIGDIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) | ||
ARCH_MAKEFILE := $(CONFIGDIR)/$(ARCH).mk | ||
ENV_MAKEFILE := $(CONFIGDIR)/../.package/env.mk | ||
|
||
include $(ENV_MAKEFILE) | ||
include $(ARCH_MAKEFILE) | ||
include $(CONFIGDIR)/compile.mk |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* Copyright (c) 2011 by Markus Duft <mduft@gentoo.org> | ||
* This file is part of the 'tachyon' operating system. */ | ||
|
||
/** | ||
* Retrieves this processes handle top the usermode API descriptor | ||
* | ||
* @return the handle to the descriptor structure | ||
*/ | ||
uapi_desc_t* udesc_get(); |
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,21 @@ | ||
/* Copyright (c) 2011 by Markus Duft <mduft@gentoo.org> | ||
* This file is part of the 'tachyon' operating system. */ | ||
|
||
#include <tachyon.h> | ||
#include <uapi.h> | ||
#include <thread.h> | ||
|
||
uapi_desc_t* udesc; | ||
|
||
extern int main(int argc, char** argv); | ||
|
||
void umain(uapi_desc_t* uapi) { | ||
udesc = uapi; | ||
|
||
// TODO | ||
main(0, NULL); | ||
} | ||
|
||
uapi_desc_t* udesc_get() { | ||
return udesc; | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,11 @@ | ||
--- grub-2.00.weg/util/grub-mkfont.c 2014-03-20 09:58:50.716920070 +0100 | ||
+++ grub-2.00/util/grub-mkfont.c 2014-03-20 09:59:14.081921487 +0100 | ||
@@ -39,7 +39,7 @@ | ||
#include FT_FREETYPE_H | ||
#include FT_TRUETYPE_TAGS_H | ||
#include FT_TRUETYPE_TABLES_H | ||
-#include <freetype/ftsynth.h> | ||
+#include <ftsynth.h> | ||
|
||
#undef __FTERRORS_H__ | ||
#define FT_ERROR_START_LIST const char *ft_errmsgs[] = { |
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