Skip to content

Commit

Permalink
Merge pull request #111 from panix-os-dev-team/dev
Browse files Browse the repository at this point in the history
Dynamic Memory Completed (Merge dev into stable)
  • Loading branch information
Kfeavel authored Aug 23, 2020
2 parents fb335ae + e7ceb64 commit c2dfff8
Show file tree
Hide file tree
Showing 64 changed files with 2,350 additions and 1,017 deletions.
Binary file added .github/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
*.raw
*.elf
.DS_Store

# Ignore build directories
obj/
dist/

# Serial Output
com1.txt
1 change: 1 addition & 0 deletions .scuba.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
image: docker.pkg.github.com/panix-os-dev-team/panix/panixbuild:1.0.0
17 changes: 5 additions & 12 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"name": "Debug Kernel",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceRoot}/dist/panix.kernel",
"program": "${workspaceRoot}/dist/kernel",
"cwd": "${workspaceRoot}",
"args": [],
"targetArchitecture": "x86",
"targetArchitecture": "x64",
"MIMode": "gdb",
"customLaunchSetupCommands": [
{
Expand All @@ -20,17 +20,10 @@
}
],
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"text": "file ${workspaceRoot}/dist/panix.kernel",
"description": "Load binary."
}
{ "text": "set arch i386:x86-64:intel"},
{ "text": "-enable-pretty-printing" },
{ "text": "file ${workspaceRoot}/dist/kernel" }
],
//"preLaunchTask": "Debug QEMU"
}
]
}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"C_Cpp.dimInactiveRegions": false
}
45 changes: 45 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
FROM debian:stable-slim
RUN apt-get update && \
apt-get install -y \
--no-install-recommends \
build-essential \
bison \
ca-certificates \
flex \
libgmp3-dev \
libmpc-dev \
libmpfr-dev \
texinfo \
wget \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ENV PREFIX="/opt/cross"
RUN export TARGET=i686-elf && \
export MAKEFLAGS="-j $(grep -c ^processor /proc/cpuinfo)" && \
mkdir -p "$PREFIX" && \
mkdir src && \
cd src && \
wget -nv https://ftp.gnu.org/gnu/binutils/binutils-2.35.tar.gz && \
wget -nv https://ftp.gnu.org/gnu/gcc/gcc-9.3.0/gcc-9.3.0.tar.gz && \
tar -xf binutils-2.35.tar.gz && \
tar -xf gcc-9.3.0.tar.gz && \
rm binutils-2.35.tar.gz && \
rm gcc-9.3.0.tar.gz && \
mkdir build-binutils && \
ls && \
cd build-binutils && \
../binutils-2.35/configure --target=$TARGET --prefix="$PREFIX" --with-sysroot --disable-nls --disable-werror && \
make && \
make install && \
cd .. && \
mkdir build-gcc && \
cd build-gcc && \
../gcc-9.3.0/configure --target=$TARGET --prefix="$PREFIX" --disable-nls --enable-languages=c,c++ --without-headers && \
make all-gcc && \
make all-target-libgcc && \
make install-gcc && \
make install-target-libgcc && \
cd .. && \
rm -rf build-gcc && \
rm -rf build-binutils
ENV PATH "$PREFIX/bin:$PATH"
Loading

0 comments on commit c2dfff8

Please sign in to comment.