Initial commit
Some checks failed
gitea/pkg-genimage/pipeline/head There was a failure building this commit

This commit is contained in:
BigfootACA 2024-03-20 05:50:20 +08:00
commit 0ec8aab028
4 changed files with 170 additions and 0 deletions

24
.SRCINFO Normal file
View File

@ -0,0 +1,24 @@
pkgbase = genimage
pkgdesc = Tool to generate multiple filesystem and flash images from a tree
pkgver = 17.r6.gd97c672
pkgrel = 1
url = https://github.com/pengutronix/genimage
arch = i686
arch = x86_64
arch = armv7h
arch = aarch64
license = GPL-2.0-only
makedepends = git
depends = confuse
optdepends = cramfs-tools: mkcramfs
optdepends = genext2fs
optdepends = qemu-headless: qemu-img
optdepends = qemu: qemu-img
optdepends = uboot-tools: mkimage
optdepends = rauc
optdepends = android-simg2img: simg2img
optdepends = simg-tools: simg2img
source = git+https://github.com/pengutronix/genimage.git
sha256sums = SKIP
pkgname = genimage

53
.gitignore vendored Normal file
View File

@ -0,0 +1,53 @@
*.rej
*.orig
*.swp
*.save*
*.o
*.a
*.out
*.lib
*.obj
*.dll
*.so
*.exe
*.gch
*.plist
*.mo
*.gmo
*.fd
*.iso
*.img
*.img.*
*.qcow2
*.vhd
*.vdi
*.vmdk
*.cpio
*.cpio.*
*.ttf
*.ttc
*.pcf
*.pcf.*
*.efi
*.pkg.tar.*
vgcore.*
/build*
initramfs*.*
initrd*.*
System.map*
/cmake-build-*
/.idea
/.vscode
/.cache
CMakeCache.txt
CMakeFiles
Makefile
cmake_install.cmake
node_modules
package.json
package-lock.json
fonts.scale
fonts.dir
/src
/pkg
/genimage

44
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,44 @@
pipeline {
agent {
label 'aarch64 && archlinux'
}
stages {
stage('Download Config') {
steps {
dir('jenkins-utils') {
git 'https://gitlab.classfun.cn:4443/renegade-project/jenkins-utils'
}
}
}
stage('Cleanup packages') {
steps {
sh 'rm -f *.pkg.tar.*'
}
}
stage('Build') {
steps {
sh 'makepkg --config jenkins-utils/makepkg-aarch64.conf --syncdeps --noconfirm --force'
}
}
stage('Signature packages') {
steps {
withCredentials([
file(credentialsId: 'gpg-file', variable: 'GPG_FILE'),
string(credentialsId: 'gpg-secret', variable: 'GPG_SECRET')
]) {
sh 'python3 jenkins-utils/sign-pkg.py -d . -k "$GPG_FILE" -p "$GPG_SECRET"'
}
}
}
stage('Upload packages') {
steps {
sh 'python3 jenkins-utils/upload-pkg.py -d . -a aarch64'
}
}
stage('Archive') {
steps {
archiveArtifacts artifacts: '*.pkg.tar.*', fingerprint: true
}
}
}
}

49
PKGBUILD Normal file
View File

@ -0,0 +1,49 @@
# Maintainer: Filipe Bertelli <filipebertelli@tutanota.com>
# Maintainer: BigfootACA <bigfoot@classfun.cn>
pkgname=genimage
pkgver=17.r6.gd97c672
pkgrel=1
pkgdesc="Tool to generate multiple filesystem and flash images from a tree"
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
url=https://github.com/pengutronix/$pkgname
license=(GPL-2.0-only)
depends=(confuse)
optdepends=(
'cramfs-tools: mkcramfs'
'genext2fs'
'qemu-headless: qemu-img'
'qemu: qemu-img'
'uboot-tools: mkimage'
'rauc'
'android-simg2img: simg2img'
'simg-tools: simg2img'
)
makedepends=(git)
source=(git+${url}.git)
sha256sums=(SKIP)
pkgver(){
cd "${srcdir}/${pkgname%-git}"
git describe --long --tags | sed 's/^v//g' | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$pkgname"
./autogen.sh
./configure \
--prefix=/usr \
--enable-silent-rules \
--disable-dependency-tracking
make
}
check() {
cd "$pkgname"
make -k check
}
package() {
cd "$pkgname"
make DESTDIR="$pkgdir" install
}