diff --git a/distro-files/etc/localtime b/distro-files/etc/localtime new file mode 100644 index 00000000..13ff0838 Binary files /dev/null and b/distro-files/etc/localtime differ diff --git a/distro-files/etc/passwd b/distro-files/etc/passwd new file mode 100644 index 00000000..68b7c4cd --- /dev/null +++ b/distro-files/etc/passwd @@ -0,0 +1 @@ +root::0:0:root:/root:/usr/bin/bash diff --git a/distro-files/etc/profile b/distro-files/etc/profile new file mode 100644 index 00000000..48506c1b --- /dev/null +++ b/distro-files/etc/profile @@ -0,0 +1,8 @@ +NORMAL="\[\e[0m\]" +RED="\[\e[1;31m\]" +GREEN="\[\e[1;32m\]" +BLUE="\[\e[1;36m\]" +WHITE="\[\e[1;37m\]" +PS1="$GREEN\u$NORMAL@$BLUE\h$NORMAL:$WHITE\w$NORMAL>" + +alias ls="ls --color=auto" diff --git a/distro-files/etc/rc b/distro-files/etc/rc new file mode 100644 index 00000000..eeee083c --- /dev/null +++ b/distro-files/etc/rc @@ -0,0 +1 @@ +mkdir /tmp diff --git a/distro-files/etc/xorg.conf b/distro-files/etc/xorg.conf new file mode 100644 index 00000000..295d4a32 --- /dev/null +++ b/distro-files/etc/xorg.conf @@ -0,0 +1,15 @@ +Section "Module" + Load "fbdev" +EndSection + +Section "Device" + Identifier "Card0" + Driver "fbdev" +EndSection + +Section "InputDevice" +Identifier "Keyboard" +Driver "kbd" +Option "Device" "/dev/keyboard" +Option "Protocol" "Standard" +EndSection diff --git a/distro-files/root/hello.asm b/distro-files/root/hello.asm new file mode 100644 index 00000000..81c5ad32 --- /dev/null +++ b/distro-files/root/hello.asm @@ -0,0 +1,13 @@ +section .text +global _start +_start: + mov rax, 9 + mov rdi, 1 + mov rsi, msg + mov rdx, 14 + syscall + mov rax,15 + xor rdi, rdi + syscall +section .data +msg: db "Hello, world!", 0xA diff --git a/distro-files/root/hello.c b/distro-files/root/hello.c new file mode 100644 index 00000000..ee60af46 --- /dev/null +++ b/distro-files/root/hello.c @@ -0,0 +1,5 @@ +#include + +int main(){ + printf("Hello, world!\n"); +} diff --git a/distro-files/root/hello.cpp b/distro-files/root/hello.cpp new file mode 100644 index 00000000..d002ccca --- /dev/null +++ b/distro-files/root/hello.cpp @@ -0,0 +1,6 @@ +#include + +int main(){ + std::cout << "Hello, world!" << std::endl; + return 0; +} diff --git a/distro-files/root/hello.sh b/distro-files/root/hello.sh new file mode 100644 index 00000000..8fbf7fa4 --- /dev/null +++ b/distro-files/root/hello.sh @@ -0,0 +1 @@ +echo Hello, World! diff --git a/recipes/distro-files b/recipes/distro-files new file mode 100644 index 00000000..e93e339e --- /dev/null +++ b/recipes/distro-files @@ -0,0 +1,15 @@ +name=distro-files +revision=1 +from_source=distro-files + +configure() { + true +} + +build() { + true +} + +install() { + cp -r ${source_dir}/* ${dest_dir} +} diff --git a/source-recipes/distro-files b/source-recipes/distro-files new file mode 100644 index 00000000..560728da --- /dev/null +++ b/source-recipes/distro-files @@ -0,0 +1,7 @@ +name=distro-files +version=0 +source_dir="distro-files" + +regenerate() { + true +}