mirror of
https://github.com/brain-hackers/buildbrain
synced 2026-03-29 09:11:08 +09:00
Compare commits
16 Commits
2022-05-10
...
2022-08-07
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e09c0ba017 | ||
|
|
d74ba8a70f | ||
|
|
ec695f99f0 | ||
|
|
22235e8cf0 | ||
|
|
9529327097 | ||
|
|
7e2b04ce18 | ||
|
|
8c7118f0b2 | ||
|
|
7a34055ef3 | ||
|
|
d64a316b1f | ||
|
|
d5ab036801 | ||
|
|
fe480d7b91 | ||
|
|
e15ce44891 | ||
|
|
0509bbbe6f | ||
|
|
a2295ecb55 | ||
|
|
07c32f712f | ||
|
|
89b4c120a2 |
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -31,7 +31,7 @@ jobs:
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ steps.release_name.outputs.name }}
|
||||
tag_name: ${{ steps.release_name.outputs.name }}-tag
|
||||
release_name: ${{ steps.release_name.outputs.name }}
|
||||
body_path: CHANGES.md
|
||||
draft: false
|
||||
|
||||
6
.gitmodules
vendored
6
.gitmodules
vendored
@@ -3,13 +3,13 @@
|
||||
url = https://github.com/brain-hackers/u-boot-brain.git
|
||||
[submodule "linux-brain"]
|
||||
path = linux-brain
|
||||
url = https://github.com/brain-hackers/linux-brain
|
||||
url = https://github.com/brain-hackers/linux-brain.git
|
||||
[submodule "nkbin_maker"]
|
||||
path = nkbin_maker
|
||||
url = https://github.com/brain-hackers/nkbin_maker.git
|
||||
[submodule "boot4u"]
|
||||
path = boot4u
|
||||
url = https://github.com/brain-hackers/boot4u
|
||||
url = https://github.com/brain-hackers/boot4u.git
|
||||
[submodule "brainlilo"]
|
||||
path = brainlilo
|
||||
url = git@github.com:brain-hackers/brainlilo.git
|
||||
url = https://github.com/brain-hackers/brainlilo.git
|
||||
|
||||
@@ -51,8 +51,8 @@ sudo kpartx -av ${IMG}
|
||||
|
||||
LOOPDEV=$(losetup -l | grep sd.img | grep -o 'loop.' | tail -n 1)
|
||||
|
||||
sudo mkfs.fat -F32 -v -I /dev/mapper/${LOOPDEV}p1
|
||||
sudo mkfs.ext4 /dev/mapper/${LOOPDEV}p2
|
||||
sudo mkfs.fat -n boot -F32 -v -I /dev/mapper/${LOOPDEV}p1
|
||||
sudo mkfs.ext4 -L rootfs /dev/mapper/${LOOPDEV}p2
|
||||
|
||||
mkdir -p ${WORK}/p1 ${WORK}/p2
|
||||
sudo mount -o utf8=true /dev/mapper/${LOOPDEV}p1 ${WORK}/p1
|
||||
@@ -60,7 +60,8 @@ sudo mount /dev/mapper/${LOOPDEV}p2 ${WORK}/p2
|
||||
|
||||
sudo cp ${LINUX}/arch/arm/boot/zImage ${WORK}/p1/
|
||||
sudo cp ${LINUX}/arch/arm/boot/dts/imx28-pw*.dtb ${WORK}/p1/
|
||||
sudo cp ${WORK}/*.bin ${WORK}/p1/
|
||||
sudo mkdir -p ${WORK}/p1/nk
|
||||
sudo cp ${WORK}/*.bin ${WORK}/p1/nk/
|
||||
|
||||
make -C ${REPO}/brainlilo
|
||||
|
||||
@@ -69,7 +70,9 @@ sudo mkdir -p "${LILO}"
|
||||
sudo touch "${LILO}/index.din"
|
||||
sudo touch "${LILO}/AppMain.cfg"
|
||||
sudo cp ${REPO}/brainlilo/*.dll "${LILO}/"
|
||||
sudo cp ${REPO}/brainlilo/BrainLILO.exe "${LILO}/AppMain.exe"
|
||||
sudo cp ${REPO}/brainlilo/BrainLILO.exe "${LILO}/AppMain_.exe"
|
||||
gzip -d ${REPO}/image/exeopener.exe.gz
|
||||
sudo cp ${REPO}/image/exeopener.exe "${LILO}/AppMain.exe"
|
||||
|
||||
sudo mkdir -p ${WORK}/p1/loader
|
||||
sudo cp ${WORK}/lilobin/*.bin ${WORK}/p1/loader/
|
||||
|
||||
BIN
image/exeopener.exe.gz
Normal file
BIN
image/exeopener.exe.gz
Normal file
Binary file not shown.
Submodule linux-brain updated: e342c1c000...09cc34a56d
@@ -33,6 +33,7 @@ APT::Install-Recommends "0";
|
||||
APT::Install-Suggests "0";
|
||||
EOF
|
||||
|
||||
# locales: locale has to be set before going any further
|
||||
apt update -y
|
||||
DEBIAN_FRONTEND=noninteractive \
|
||||
apt install -y locales
|
||||
@@ -50,6 +51,32 @@ rm /etc/localtime
|
||||
ln -s /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
|
||||
|
||||
echo "brain" > /etc/hostname
|
||||
|
||||
# Install packagecloud repository
|
||||
# Reference: https://packagecloud.io/brainhackers/brainux/install
|
||||
|
||||
# curl: 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-transport-https can be installed after debian-archive-keyring being installed
|
||||
DEBIAN_FRONTEND=noninteractive \
|
||||
apt install -y apt-transport-https
|
||||
|
||||
# Install GPG key and packagecloud repository config
|
||||
mkdir -p /etc/apt/keyrings
|
||||
curl -fsSL "https://packagecloud.io/brainhackers/brainux/gpgkey" \
|
||||
| gpg --dearmor > /etc/apt/keyrings/brainhackers_brainux-archive-keyring.gpg
|
||||
|
||||
cat <<EOF > /etc/apt/sources.list.d/packagecloud.list
|
||||
deb [signed-by=/etc/apt/keyrings/brainhackers_brainux-archive-keyring.gpg] https://packagecloud.io/brainhackers/brainux/any/ any main
|
||||
deb-src [signed-by=/etc/apt/keyrings/brainhackers_brainux-archive-keyring.gpg] https://packagecloud.io/brainhackers/brainux/any/ any main
|
||||
EOF
|
||||
|
||||
# Fetch packagecloud repository
|
||||
apt update -y
|
||||
|
||||
DEBIAN_FRONTEND=noninteractive \
|
||||
apt install -y dialog sudo \
|
||||
libjpeg-dev libfreetype6 libfreetype6-dev zlib1g-dev \
|
||||
@@ -61,10 +88,12 @@ DEBIAN_FRONTEND=noninteractive \
|
||||
dbus udev alsa-utils usbutils iw fake-hwclock\
|
||||
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 curl wget git
|
||||
resolvconf net-tools ssh openssh-client avahi-daemon wget git \
|
||||
network-manager zip neofetch sl python3-numpy ipython3 netsurf-gtk fcitx-anthy
|
||||
|
||||
# Packages from packagecloud
|
||||
DEBIAN_FRONTEND=noninteractive \
|
||||
apt install -y --install-recommends fcitx-anthy
|
||||
apt install -y --install-recommends brain-config
|
||||
|
||||
systemctl enable fake-hwclock
|
||||
|
||||
|
||||
Reference in New Issue
Block a user