mirror of
https://github.com/brain-hackers/buildbrain
synced 2026-03-29 09:11:08 +09:00
Compare commits
21 Commits
2022-08-07
...
2022-12-22
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9671252f5d | ||
|
|
935363d6ac | ||
|
|
25668a72e3 | ||
|
|
d7da4a6e44 | ||
|
|
8f3f63be44 | ||
|
|
a4350f303c | ||
|
|
f7a20f61b7 | ||
|
|
2ecec60001 | ||
|
|
eaa027db98 | ||
|
|
53e39a8bb6 | ||
|
|
453fe8d60f | ||
|
|
e7d3c4629a | ||
|
|
57c5052909 | ||
|
|
84960b1471 | ||
|
|
515aff62be | ||
|
|
6cf0f749d4 | ||
|
|
7ca8ed3cc1 | ||
|
|
f444f68a3b | ||
|
|
f503ef87ef | ||
|
|
3f4afedf45 | ||
|
|
5e92df0600 |
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -128,7 +128,7 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- model: g5300
|
||||
- model: a7200
|
||||
nk: edna3exe.bin
|
||||
lilo: gen2.bin
|
||||
- model: sh1
|
||||
|
||||
4
Makefile
4
Makefile
@@ -144,9 +144,9 @@ brainux:
|
||||
sudo mkdir -p brainux
|
||||
@if [ "$(CI)" = "true" ]; then \
|
||||
echo "I'm in CI and debootstrap without cache."; \
|
||||
sudo debootstrap --arch=$(ROOTFS_CROSS) --foreign buster brainux/; \
|
||||
sudo debootstrap --arch=$(ROOTFS_CROSS) --foreign bullseye brainux/; \
|
||||
else \
|
||||
sudo debootstrap --arch=$(ROOTFS_CROSS) --foreign buster brainux/ http://localhost:65432/debian/; \
|
||||
sudo debootstrap --arch=$(ROOTFS_CROSS) --foreign bullseye brainux/ http://localhost:65432/debian/; \
|
||||
fi
|
||||
sudo cp /usr/bin/qemu-arm-static brainux/usr/bin/
|
||||
sudo cp ./os-brainux/setup_brainux.sh brainux/
|
||||
|
||||
Submodule brainlilo updated: c826f2581e...0ef73cdeb4
23
image/LICENSE
Normal file
23
image/LICENSE
Normal file
@@ -0,0 +1,23 @@
|
||||
*** exeopener ***
|
||||
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2022 Chiharu Shirasaka
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
@@ -11,7 +11,7 @@ export CROSS_COMPILE=arm-linux-gnueabi-
|
||||
mkdir -p ${WORK}
|
||||
mkdir -p ${WORK}/lilobin
|
||||
|
||||
for i in "g5300" "sh1" "sh2" "sh3" "sh4" "sh5" "sh6" "sh7"; do
|
||||
for i in "a7200" "sh1" "sh2" "sh3" "sh4" "sh5" "sh6" "sh7"; do
|
||||
NUM=$(echo $i | sed -E 's/sh//g')
|
||||
|
||||
make -C ${REPO}/u-boot-brain distclean pw${i}_defconfig
|
||||
@@ -19,7 +19,7 @@ for i in "g5300" "sh1" "sh2" "sh3" "sh4" "sh5" "sh6" "sh7"; do
|
||||
${REPO}/nkbin_maker/bsd-ce ${REPO}/u-boot-brain/u-boot.bin
|
||||
|
||||
case $i in
|
||||
"g5300")
|
||||
"a7200")
|
||||
mv ${REPO}/nk.bin ${WORK}/edna3exe.bin
|
||||
mv ${REPO}/u-boot-brain/u-boot.bin ${WORK}/lilobin/gen2.bin;;
|
||||
"sh1" | "sh2" | "sh3")
|
||||
|
||||
Submodule linux-brain updated: 09cc34a56d...60e1cb92ee
@@ -5,10 +5,8 @@ set -uex -o pipefail
|
||||
SRC=$1
|
||||
DST=$2
|
||||
|
||||
install -g root -o root -m 0644 $SRC/usr/lib/os-release $DST/usr/lib/os-release
|
||||
install -g root -o root -m 0644 $SRC/etc/issue $DST/etc/issue
|
||||
install -g root -o root -m 0644 $SRC/etc/issue.net $DST/etc/issue.net
|
||||
install -g root -o root -m 0644 $SRC/etc/motd $DST/etc/motd
|
||||
install -g root -o root -m 0440 $SRC/etc/sudoers $DST/etc/sudoers
|
||||
|
||||
install -g root -o root -m 0644 $SRC/etc/X11/xorg.conf $DST/etc/X11/xorg.conf
|
||||
install -g root -o root -m 0644 $SRC/etc/X11/Xsession.d/96calibrate $DST/etc/X11/Xsession.d/96calibrate
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
Brainux GNU/Linux 10 \n \l
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
Brainux GNU/Linux 10
|
||||
27
os-brainux/override/etc/sudoers
Normal file
27
os-brainux/override/etc/sudoers
Normal file
@@ -0,0 +1,27 @@
|
||||
#
|
||||
# This file MUST be edited with the 'visudo' command as root.
|
||||
#
|
||||
# Please consider adding local content in /etc/sudoers.d/ instead of
|
||||
# directly modifying this file.
|
||||
#
|
||||
# See the man page for details on how to write a sudoers file.
|
||||
#
|
||||
Defaults env_reset,pwfeedback
|
||||
Defaults mail_badpass
|
||||
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
|
||||
|
||||
# Host alias specification
|
||||
|
||||
# User alias specification
|
||||
|
||||
# Cmnd alias specification
|
||||
|
||||
# User privilege specification
|
||||
root ALL=(ALL:ALL) ALL
|
||||
|
||||
# Allow members of group sudo to execute any command
|
||||
%sudo ALL=(ALL:ALL) ALL
|
||||
|
||||
# See sudoers(5) for more information on "@include" directives:
|
||||
|
||||
@includedir /etc/sudoers.d
|
||||
@@ -1,9 +0,0 @@
|
||||
PRETTY_NAME="Brainux GNU/Linux 11 (bullseye)"
|
||||
NAME="Brainux GNU/Linux"
|
||||
VERSION_ID="11"
|
||||
VERSION="11 (bullseye)"
|
||||
VERSION_CODENAME=bullseye
|
||||
ID=debian
|
||||
HOME_URL="https://github.com/brain-hackers/README"
|
||||
SUPPORT_URL="https://github.com/brain-hackers/buildbrain"
|
||||
BUG_REPORT_URL="https://github.com/brain-hackers/buildbrain"
|
||||
@@ -55,10 +55,10 @@ echo "brain" > /etc/hostname
|
||||
# Install packagecloud repository
|
||||
# Reference: https://packagecloud.io/brainhackers/brainux/install
|
||||
|
||||
# curl: downloads the GPG key from packagecloud
|
||||
# curl, ca-certificates: downloads the GPG key from packagecloud
|
||||
# gnupg, debian-archive-keyring: packagecloud verification dependency
|
||||
DEBIAN_FRONTEND=noninteractive \
|
||||
apt install -y curl gnupg debian-archive-keyring
|
||||
apt install -y curl ca-certificates gnupg debian-archive-keyring
|
||||
|
||||
# apt-transport-https can be installed after debian-archive-keyring being installed
|
||||
DEBIAN_FRONTEND=noninteractive \
|
||||
@@ -85,7 +85,7 @@ DEBIAN_FRONTEND=noninteractive \
|
||||
weston xwayland \
|
||||
bash tmux vim htop \
|
||||
midori pcmanfm lxterminal xterm gnome-terminal fbterm uim-fep uim-anthy fonts-noto-cjk \
|
||||
dbus udev alsa-utils usbutils iw fake-hwclock\
|
||||
dbus udev alsa-utils usbutils iw fake-hwclock systemd-timesyncd\
|
||||
build-essential flex bison pkg-config autotools-dev libtool autoconf automake device-tree-compiler \
|
||||
python3 python3-dev python3-setuptools python3-wheel python3-pip python3-smbus \
|
||||
resolvconf net-tools ssh openssh-client avahi-daemon wget git \
|
||||
@@ -105,6 +105,7 @@ git clone --recurse-submodules https://github.com/nullgemm/ly.git
|
||||
cd ly
|
||||
make
|
||||
make install
|
||||
make installsystemd
|
||||
cd /
|
||||
rm -r ly
|
||||
systemctl enable ly
|
||||
|
||||
Submodule u-boot-brain updated: 0449ff1430...783749833d
Reference in New Issue
Block a user