forked from ExistOS-Team/ExistOS-For-HP39GII
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
10 changed files
with
112 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -77,4 +77,7 @@ elftosb1 | |
rsrctool | ||
sbtoelf | ||
edb | ||
sysigner | ||
sysigner | ||
|
||
# nix outputs | ||
result |
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,8 @@ | ||
#!/bin/sh -e | ||
source $stdenv/setup | ||
mkdir -p $out/lib $TMP/src | ||
|
||
cp -R $src $TMP/src/mpy | ||
chmod 755 -R $TMP/src/mpy | ||
cd $TMP/src/mpy/ports/eoslib && make | ||
cp $TMP/libmpy.libc $out/lib/ |
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 @@ | ||
{ pkgs ? import <nixpkgs> {} }: | ||
with pkgs; | ||
stdenv.mkDerivation { | ||
name = "micropython-eos"; | ||
src = ./.; | ||
builder = ./builder.sh; | ||
buildInputs = [ | ||
gcc-arm-embedded | ||
python3 | ||
]; | ||
} |
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,22 @@ | ||
#!/bin/sh -e | ||
source $stdenv/setup | ||
|
||
mkdir -p $out | ||
|
||
cd $src | ||
cp -R $src $TMP/ExistOS | ||
chmod -R 755 $TMP/ExistOS | ||
cd $TMP/ExistOS | ||
|
||
echo '#!/bin/sh -e | ||
sysigner $@' >> ./tools/sysigner | ||
chmod +x ./tools/sysigner | ||
|
||
echo '#!/bin/sh -e | ||
elftosb $@' >> ./tools/sbtools/elftosb | ||
chmod +x ./tools/sbtools/elftosb | ||
|
||
cmake . | ||
make | ||
cp $TMP/ExistOS/OSLoader/OSLoader.sb $out/ | ||
cp $TMP/ExistOS/System/ExistOS.sys $out/ |
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,14 @@ | ||
{ pkgs ? import <nixpkgs> {} }: | ||
with pkgs; | ||
stdenv.mkDerivation { | ||
name = "ExistOS"; | ||
src = ./.; | ||
builder = ./builder.sh; | ||
buildInputs = [ | ||
gcc-arm-embedded | ||
newlib-nano | ||
cmake | ||
(import ./tools/sys_signer/default.nix {}) | ||
(import ./tools/sbtools/default.nix {}) | ||
]; | ||
} |
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 @@ | ||
let pkgs = import <nixpkgs> {}; | ||
in with pkgs; | ||
pkgs.mkShell { | ||
buildInputs = [ | ||
gcc-arm-embedded | ||
newlib-nano | ||
cmake | ||
(import ./tools/sys_signer/default.nix {}) | ||
(import ./tools/sbtools/default.nix {}) | ||
]; | ||
} |
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 @@ | ||
#!/bin/sh -e | ||
source $stdenv/setup | ||
mkdir -p $out/bin | ||
|
||
cp -R $src $TMP/sbtools | ||
chmod 755 -R $TMP/sbtools | ||
cd $TMP/sbtools && make | ||
cp sbloader $out/bin/ | ||
cp elftosb $out/bin/ |
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,13 @@ | ||
{ pkgs ? import <nixpkgs> {} }: | ||
with pkgs; | ||
stdenv.mkDerivation { | ||
name = "sbtools"; | ||
src = ./.; | ||
builder = ./builder.sh; | ||
buildInputs = [ | ||
libusb | ||
cryptopp | ||
udev | ||
pkg-config | ||
]; | ||
} |
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 @@ | ||
#!/bin/sh -e | ||
source $stdenv/setup | ||
mkdir -p $out/bin | ||
|
||
cd $src | ||
mkdir -p $TMP/sys_signer/build | ||
cmake -B $TMP/sys_signer/build/ | ||
cmake --build $TMP/sys_signer/build/ | ||
cp $TMP/sys_signer/build/sysigner $out/bin/sysigner |
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 @@ | ||
{ pkgs ? import <nixpkgs> {} }: | ||
with pkgs; | ||
stdenv.mkDerivation { | ||
name = "sys_signer"; | ||
src = ./.; | ||
builder = ./builder.sh; | ||
buildInputs = [ | ||
cmake | ||
glibc.static | ||
]; | ||
} |