orangepi-pc #3

Merged
wt merged 41 commits from orangepi-pc into main 2025-08-17 14:25:32 +07:00
2 changed files with 8 additions and 43 deletions
Showing only changes of commit f8325e328f - Show all commits
+8 -8
View File
@@ -1,7 +1,7 @@
#!/bin/bash
#------------ config ------------------
export PATH=$PATH:/opt/toolchains/aarch64-buildroot-linux-uclibc/bin
export PATH=$PATH:/opt/toolchains/arm-buildroot-linux-uclibcgnueabihf/bin
export version=0.0.1 # script version
export root=$(pwd) # root build directory
# disk="sdz" # disk to write install image
@@ -9,7 +9,7 @@ export distro_name="Simple" # distro name
export distro_desc="Simple linux distro" # distro desctiption
export distro_codename="zero_zero_one" # distro codename
# hyperv_support="false" # hyperv support for kernel image
export BOARD_NAME=orangepi_zero_2w
export BOARD_NAME=orangepi_pc
export out=$root/out # output directory
export build=$root/build # build directory
export sourcesfilename=sources.txt # sources file for downloading
@@ -19,15 +19,15 @@ export rootfsfile=$root/rootfs/rootfs.txt # file to created director
export rootfspath=$build/rootfs # rootfs build directory
export fulllogfile=$root/.log/fulllog.log # file for full build logs
export makeflags=-j$(nproc) # makeflags
export CROSS_COMPILE=aarch64-buildroot-linux-uclibc
export ARCH=arm64
export CROSS_COMPILE=arm-buildroot-linux-uclibcgnueabihf
export ARCH=arm
export sdroot=$out/sdroot
export UCLIBC_CONFIG_FILE=$root/board/${BOARD_NAME}/uclibc-1.0.50.config
export UCLIBC_CONFIG_FILE=${root}/board/${BOARD_NAME}/uclibc-1.0.50.config
export KERNEL_VERSION=6.8.6
export KERNEL_VERSION=6.13.3
export KERNEL_CONFIG_FILE=${root}/board/${BOARD_NAME}/linux-${KERNEL_VERSION}.config
export UBOOT_DEFCONFIG=orangepi_zero2w_defconfig
export UBOOT_DEFCONFIG=orangepi_pc_defconfig
export ZLIB_ENABLE=y
export DROPBEAR_ENABLE=y
@@ -45,5 +45,5 @@ export HOSTAPD_ENABLE=y
export OPENSSL_ENABLE=y
export DNSMASQ_ENABLE=y
export IPTABLES_ENABLE=y
export KO8821AU_ENABLE=n
export KO8821AU_ENABLE=y
#--------------------------------------
-35
View File
@@ -1,35 +0,0 @@
pkgname=libatomic
pkgver=1
pkgrel=1
source="https://www.kernel.org/pub/software/scm/git/git-2.46.0.tar.xz"
deps="uClibc-ng-1.0.50-1 curl-8.9.1-1"
export PATH=$PATH:/opt/toolchains/arm-buildroot-linux-uclibcgnueabihf/bin
export CROSS_COMPILE=arm-buildroot-linux-uclibcgnueabihf
export ARCH=arm
configure() {
cd $srcdir
tar -xvf $pkgname-$pkgver.tar.xz
cd -
export srcdir=$srcdir/$pkgname-$pkgver
cd $srcdir
./configure \
--prefix=/usr \
--host=$CROSS_COMPILE \
NO_ICONV=true \
ac_cv_fread_reads_directories=true \
ac_cv_snprintf_returns_bogus=false
cd -
}
build() {
make -C $srcdir -j$(nproc)
}
package() {
make -C $srcdir DESTDIR=$pkgdir install
${CROSS_COMPILE}-strip --strip-unneeded $srcdir/usr/bin/* $srcdir/libexec/git-core/*
return 0
# rm -rv $pkgdir/usr/{include,share} $pkgdir/usr/lib/pkgconfig $pkgdir/usr/lib/*.a
}