mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-05-28 15:34:31 +00:00
Update files
This commit is contained in:
parent
725538defe
commit
432096fc25
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,6 +6,7 @@ tools/*
|
||||
!tools/*.cpp
|
||||
!tools/*.cfg
|
||||
doxygen-doc
|
||||
initrd.tar.gz
|
||||
*.log
|
||||
*.img
|
||||
*.iso
|
||||
|
20
.vscode/c_boilerplates.code-snippets
vendored
Normal file
20
.vscode/c_boilerplates.code-snippets
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
"Fennix Kernel Header": {
|
||||
"scope": "c",
|
||||
"prefix": [
|
||||
"head",
|
||||
],
|
||||
"body": [
|
||||
"#ifndef __FENNIX_KERNEL_${2:header}_H__",
|
||||
"#define __FENNIX_KERNEL_${2:header}_H__",
|
||||
"",
|
||||
"#include <types.h>",
|
||||
"",
|
||||
"$0",
|
||||
"",
|
||||
"#endif // !__FENNIX_KERNEL_${2:header}_H__",
|
||||
""
|
||||
],
|
||||
"description": "Create kernel header."
|
||||
}
|
||||
}
|
39
.vscode/c_cpp_properties.json
vendored
Normal file
39
.vscode/c_cpp_properties.json
vendored
Normal file
@ -0,0 +1,39 @@
|
||||
{
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Linux",
|
||||
"includePath": [
|
||||
"${workspaceFolder}/include/**"
|
||||
],
|
||||
"defines": [
|
||||
"KERNEL_NAME=\"Fennix\"",
|
||||
"KERNEL_VERSION=\"1.0\"",
|
||||
"GIT_COMMIT=\"0000000000000000000000000000000000000000\"",
|
||||
"GIT_COMMIT_SHORT=\"0000000\""
|
||||
],
|
||||
"compilerPath": "/usr/bin/gcc",
|
||||
"cStandard": "c17",
|
||||
"cppStandard": "c++20",
|
||||
"intelliSenseMode": "gcc-x64",
|
||||
"configurationProvider": "ms-vscode.makefile-tools",
|
||||
"compilerArgs": [
|
||||
"-fno-rtti",
|
||||
"-fexceptions",
|
||||
"-fno-pic",
|
||||
"-fno-pie",
|
||||
"-mno-80387",
|
||||
"-mno-mmx",
|
||||
"-mno-3dnow",
|
||||
"-mno-red-zone",
|
||||
"-mno-sse",
|
||||
"-mno-sse2",
|
||||
"-march=nehalem",
|
||||
"-pipe",
|
||||
"-mcmodel=kernel",
|
||||
"-msoft-float",
|
||||
"-fno-builtin"
|
||||
]
|
||||
}
|
||||
],
|
||||
"version": 4
|
||||
}
|
26
.vscode/settings.json
vendored
Normal file
26
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
{
|
||||
"C_Cpp.errorSquiggles": "Enabled",
|
||||
"C_Cpp.autocompleteAddParentheses": true,
|
||||
"C_Cpp.codeAnalysis.clangTidy.enabled": true,
|
||||
"C_Cpp.clang_format_style": "Visual Studio",
|
||||
"C_Cpp.default.intelliSenseMode": "gcc-x64",
|
||||
"C_Cpp.default.cStandard": "c17",
|
||||
"C_Cpp.default.cppStandard": "c++20",
|
||||
"C_Cpp.intelliSenseMemoryLimit": 16384,
|
||||
"editor.smoothScrolling": true,
|
||||
"editor.cursorSmoothCaretAnimation": true,
|
||||
"files.watcherExclude": {
|
||||
"**/tools/binutils-gdb/**": true,
|
||||
"**/tools/build-binutilsamd64/**": true,
|
||||
"**/tools/build-binutilsarm64/**": true,
|
||||
"**/tools/build-binutilsi686/**": true,
|
||||
"**/tools/build-gccamd64/**": true,
|
||||
"**/tools/build-gccarm64/**": true,
|
||||
"**/tools/build-gcci686/**": true,
|
||||
"**/tools/cross/**": true,
|
||||
"**/tools/gcc/**": true,
|
||||
"**/tools/limine/**": true,
|
||||
"**/tools/qemu/**": true,
|
||||
"**/doxygen-doc/**": true,
|
||||
}
|
||||
}
|
@ -5,9 +5,6 @@
|
||||
}
|
||||
],
|
||||
"settings": {
|
||||
"debug.allowBreakpointsEverywhere": true,
|
||||
"files.associations": {
|
||||
"ostream": "cpp"
|
||||
}
|
||||
"debug.allowBreakpointsEverywhere": true
|
||||
}
|
||||
}
|
2
Makefile
2
Makefile
@ -105,7 +105,7 @@ build_userspace:
|
||||
|
||||
build_image:
|
||||
mkdir -p iso_tmp_data
|
||||
tar cf initrd.tar.gz -C Initrd/ ./ --format=ustar
|
||||
tar cf initrd.tar.gz -C initrd/ ./ --format=ustar
|
||||
cp Kernel/kernel.fsys initrd.tar.gz \
|
||||
iso_tmp_data/
|
||||
ifeq ($(BOOTLOADER), lynx)
|
||||
|
@ -4,8 +4,9 @@ INTERFACE_BRANDING=Fennix
|
||||
:Fennix (Limine)
|
||||
# DO NOT EDIT!
|
||||
COMMENT=Boot Fennix using Limine protocol
|
||||
RESOLUTION=1280x720
|
||||
PROTOCOL=limine
|
||||
KERNEL_CMDLINE=debug
|
||||
KERNEL_PATH=boot:///kernel.fsys
|
||||
|
||||
MODULE_PATH=boot:///initrd.tar.gz
|
||||
MODULE_CMDLINE=initrd
|
||||
|
@ -79,6 +79,7 @@
|
||||
If you want to build different architecture, use other QEMU binary or change kernel name you can find in <code class="panel">Makefile.conf</code> file.<br>
|
||||
<hr color="#292929">
|
||||
<code class="panel">DEBUG</code> • If it's set to <code class="panel">1</code>, the kernel will be compiled in debug mode.<br>
|
||||
<code class="panel">TESTING</code> • Enable unit testing.<br>
|
||||
<code class="panel">OSNAME</code> • The name of the kernel. This can be anything.<br>
|
||||
<code class="panel">OSARCH</code> • The architecture of the kernel. Supported values are: <code class="panel">amd64</code> <code class="panel">i686</code> <code class="panel">aarch64</code>.<br>
|
||||
<code class="panel">KERNEL_VERSION</code> • The version of the kernel. This can be anything.<br>
|
||||
@ -87,7 +88,6 @@
|
||||
<code class="panel">COMPILER_PATH</code> • The path of the cross compiler. If you want to use your own cross compiler, change it to the path of the compiler.<br>
|
||||
<code class="panel">LIMINE_FOLDER</code> • The path of the Limine bootloader.<br>
|
||||
<code class="panel">QEMU_PATH</code> • Qemu path. If you want to use the one you have installed in your system, change it to /usr/bin/qemu-system- (do not include x86_64 or i386, it will be added automatically)<br>
|
||||
<code class="panel">UNIT_TESTS</code> • Enable unit testing.<br>
|
||||
That's all you can change in this file.<br>
|
||||
</div>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user