From c6f9f295ee59975534f1afb838fd680b89e3e8ed Mon Sep 17 00:00:00 2001 From: Matheus Date: Sat, 13 May 2023 22:30:25 -0300 Subject: [PATCH] distro files --- distro-files/etc/localtime | Bin 0 -> 1444 bytes distro-files/etc/passwd | 1 + distro-files/etc/profile | 8 ++++++++ distro-files/etc/rc | 1 + distro-files/etc/xorg.conf | 15 +++++++++++++++ distro-files/root/hello.asm | 13 +++++++++++++ distro-files/root/hello.c | 5 +++++ distro-files/root/hello.cpp | 6 ++++++ distro-files/root/hello.sh | 1 + recipes/distro-files | 15 +++++++++++++++ source-recipes/distro-files | 7 +++++++ 11 files changed, 72 insertions(+) create mode 100644 distro-files/etc/localtime create mode 100644 distro-files/etc/passwd create mode 100644 distro-files/etc/profile create mode 100644 distro-files/etc/rc create mode 100644 distro-files/etc/xorg.conf create mode 100644 distro-files/root/hello.asm create mode 100644 distro-files/root/hello.c create mode 100644 distro-files/root/hello.cpp create mode 100644 distro-files/root/hello.sh create mode 100644 recipes/distro-files create mode 100644 source-recipes/distro-files diff --git a/distro-files/etc/localtime b/distro-files/etc/localtime new file mode 100644 index 0000000000000000000000000000000000000000..13ff083869a9ac8476775587de8476654a100017 GIT binary patch literal 1444 zcmcK3%}bO)0LSr1D=96lLqvr-CL)&Fv}?MSnI)!{Ynh9wNeGo_9f~NbLugbI2!*`~ zb{RT^bcp9rq(Wd}sV7T}Ky=;o)Qgl+x~$gIeCH1+Iyeu*=kQ$S@csF!8|qxvUr&wx zyGY;V_a2>j(iu}6==_zZx~4N^xBsjd@jR9zpF?tV?FW0bt4fT`t(N}#elb4QE(1Qd z_))z~{#x#K1l8P^2sz(!NyQG_kZ~8@t9Z557Vbfn zaJfNli0W5~l`HMUiPIt}>${ya+$WL~Vr263NtI$v%al7UV&kV3_NJ3AmD=-Erq%U| zbk!y|?|CR>(?z)@)~j5Hgzb(vAu>EZnGt*;GDW=19IRJaGp}t==QWW%J}I}|OjXE=i_Wt5q;=q;TvP@*FgGUQxxwT&T@>8VmqeoOE zM#+kSb)qtSN>+Bvi>ir1S$*9v4*P5En))8m=r~Sz*n)lGjx$_hS&lOq2wUtp@7`ET zOT0cSO}g}TTfYCOLO;}@45SXDE(ECrDFvy;sEa|WG3s)VdXR#Uijb0!nvkN9s*tjf zx{SIoq%xx}4XF(&j^?QjDG#X+DG;d;DG{mBsEb6ZH0m;uI*qzeq*9|U6{!^|7O55~ z7pWI17^xU38L1g58mZc-%SP%p>cWxAkZi+k@AuHkp&oV$vAuBWLr6FrG>ct_e dLzaiE4_P2K>Q)wPgJI$SSYc$2-eRsh@()nK$prua literal 0 HcmV?d00001 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 +}