-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add blobby, hybrid linux kernel packages
- Loading branch information
Showing
39 changed files
with
646 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 0 additions & 35 deletions
35
kernel/packages/prawnos-linux-image-arm64/src/debian/changelog
This file was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
kernel/packages/prawnos-linux-image-blobby-arm64/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#only include specific /debian files | ||
src/debian/* | ||
!src/debian/compat | ||
!src/debian/changelog | ||
!src/debian/control | ||
!src/debian/copyright | ||
!src/debian/rules | ||
!src/debian/install | ||
!src/debian/postinst | ||
!src/debian/source | ||
|
||
#generic packaging artifacts | ||
debhelper-build-stamp | ||
.debhelper | ||
*.deb | ||
*.dsc | ||
*.build | ||
*.buildinfo | ||
*.changes | ||
*.log | ||
*.substvars | ||
*.diff.gz | ||
*.upload | ||
*.orig.tar.gz | ||
|
||
#kernel image specific ignores | ||
prawnos-linux-image-blobby-arm64_*.debian.tar.xz |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
.DEFAULT_GOAL := default | ||
#import all shared make vars | ||
PRAWNOS_ROOT := $(shell git rev-parse --show-toplevel) | ||
include $(PRAWNOS_ROOT)/scripts/BuildScripts/BuildCommon.mk | ||
|
||
ifneq ($(TARGET),$(PRAWNOS_ARM64)) | ||
$(error Cant build arm64 kernel package with non arm64 target) | ||
endif | ||
|
||
ifneq ($(KERNEL_TYPE),$(PRAWNOS_HYBRID_KERNEL)) | ||
$(error Cant build arm64 hybrid kernel package with KERNEL_TYPE not set to hybrid-kernel) | ||
endif | ||
|
||
#package specific vars | ||
DEB_VERSION := $(PRAWNOS_KERNEL_IMAGE_CAT_DEB_VER) | ||
PRAWNOS_VERSION := $(PRAWNOS_KERNEL_IMAGE_CAT_PRAWNOS_VER) | ||
PACKAGE := prawnos-linux-image-blobby-arm64 | ||
PACKAGE_ARCH := arm64 | ||
|
||
#uses the full debian version for the package name | ||
PACKAGE_NAME := $(PACKAGE)_$(DEB_VERSION)_$(PACKAGE_ARCH) | ||
PACKAGE_NAME_DEB := $(PACKAGE_NAME).deb | ||
#uses only the upstream kernel version for the orig tar | ||
PACKAGE_NAME_ORIG := $(PACKAGE)_$(PRAWNOS_VERSION) | ||
PACKAGE_NAME_ORIG_TAR = $(PACKAGE_NAME_ORIG).orig.tar.gz | ||
PACKAGE_NAME_ORIG_DIR = $(PACKAGE)_$(KVER)-$(PRAWNOS_KERNEL_VER)-orig | ||
|
||
ORIG := $(PRAWNOS_BUILD)/$(PACKAGE_NAME_ORIG_DIR) | ||
|
||
default: $(PACKAGE_NAME_DEB) | ||
|
||
|
||
$(PACKAGE_NAME_DEB): $(PACKAGE_NAME_ORIG_TAR) | ||
@echo Building $@ | ||
$(PRAWNOS_PACKAGE_SCRIPTS_UPDATE_DEB_FILES) $(PRAWNOS_KERNEL_PACKAGE_IMAGE)/src $(DEB_VERSION) $(PRAWNOS_VERSION) $(PRAWNOS_KERNEL_PACKAGE_IMAGE) | ||
$(PRAWNOS_PACKAGE_SCRIPTS_PBUILD) $(PACKAGE_NAME_DEB) \ | ||
$(PBUILDER_VARS) \ | ||
$(PRAWNOS_LOCAL_APT_VARS) \ | ||
$(PACKAGE_LOCAL_BUILD_DEPS) | ||
|
||
$(PACKAGE_NAME_ORIG_TAR): | ||
make -f $(PRAWNOS_KERNEL)/makefile kernel | ||
rm -rf $(ORIG) | ||
rm -f $(PACKAGE)_*-*.orig.tar.gz | ||
mkdir $(ORIG) | ||
cp $(PRAWNOS_KERNEL_BUILT) $(ORIG)/$(PACKAGE_NAME_ORIG) | ||
cp $(PRAWNOS_KERNEL_RESOURCES_SHARED)/FlashKernelPartition.sh $(ORIG)/ | ||
tar -czf $(PACKAGE_NAME_ORIG_TAR) -C $(ORIG)/ . | ||
|
||
|
||
.PHONY: clean | ||
clean: | ||
rm -rf *.upload | ||
rm -rf *.deb | ||
rm -rf *.changes | ||
rm -rf *.dsc | ||
rm -rf *.build | ||
rm -rf *.diff.gz | ||
rm -rf *.debian.tar.xz | ||
rm -rf *.buildinfo | ||
rm -f src/debian/debhelper-build-stamp | ||
rm -rf src/debian/$(PACKAGE)* | ||
rm -f src/debian/files | ||
rm -rf src/debian/.debhelper | ||
rm -f $(PACKAGE)_*-*.orig.tar.gz | ||
rm -rf $(ORIG) | ||
|
||
.PHONY: install | ||
install: | ||
$(PRAWNOS_PACKAGE_SCRIPTS_INSTALL) $(PACKAGE_NAME_DEB) $(INSTALL_TARGET) | ||
$(PRAWNOS_IMAGE_SCRIPTS_INSTALL_KERNEL) $(KVER) $(PRAWNOS_IMAGE) $(TARGET) $(PRAWNOS_KERNEL_BUILD) $(PRAWNOS_BUILD) $(PACKAGE) $(PACKAGE_NAME_DEB) | ||
|
||
.PHONY: upload | ||
upload: | ||
$(PRAWNOS_PACKAGE_SCRIPTS_UPLOAD) $(PACKAGE_NAME).changes |
5 changes: 5 additions & 0 deletions
5
kernel/packages/prawnos-linux-image-blobby-arm64/src/debian/changelog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
prawnos-linux-image-blobby-arm64 (6.6.60-1-1) testing; urgency=medium | ||
|
||
* release 6.6.60-1-1 | ||
|
||
-- Eva Emmerich <eva@evaemmerich.com> Mon, 11 Nov 2024 12:39:22 -0800 |
File renamed without changes.
13 changes: 13 additions & 0 deletions
13
kernel/packages/prawnos-linux-image-blobby-arm64/src/debian/control
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Source: prawnos-linux-image-blobby-arm64 | ||
Section: kernel | ||
Priority: optional | ||
Maintainer: Eva Emmerich <eva@evaemmerich.com> | ||
Build-Depends: debhelper (>= 10) | ||
Standards-Version: 4.5.0 | ||
|
||
|
||
Package: prawnos-linux-image-blobby-arm64 | ||
Architecture: arm64 | ||
Depends: ${misc:Depends} coreutils | ||
Conflicts: prawnos-linux-image-libre-arm64, prawnos-linux-image-blobby-arm64 | ||
Description: the PrawnOS linux kernel distribution. Made up of normal aka blobby linux, PrawnOS initramfs, and varying numbers of patches |
File renamed without changes.
2 changes: 2 additions & 0 deletions
2
kernel/packages/prawnos-linux-image-blobby-arm64/src/debian/install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
prawnos-linux-image-blobby-arm64* boot | ||
FlashKernelPartition.sh etc/prawnos/kernel |
22 changes: 22 additions & 0 deletions
22
kernel/packages/prawnos-linux-image-blobby-arm64/src/debian/postinst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
|
||
# the kernel file version doesn't include the debian package version, so we have to do some sed magic to drop it | ||
DEBVERSION=$(dpkg-query --show --showformat='${Version}' prawnos-linux-image-arm64) | ||
VERSION=$(sed 's/\(.*\)-.*/\1/' <<< ${DEBVERSION}) | ||
|
||
KERNEL_IMAGE="/boot/prawnos-linux-image-blobby-arm64_${VERSION}" | ||
|
||
set -e | ||
|
||
case "$1" in | ||
configure) | ||
/etc/prawnos/kernel/FlashKernelPartition.sh $KERNEL_IMAGE | ||
;; | ||
abort-upgrade|abort-remove|abort-deconfigure) | ||
# Do nothing | ||
;; | ||
*) | ||
echo "Unrecognized postinst argument '$1'" | ||
;; | ||
esac |
File renamed without changes.
File renamed without changes.
Oops, something went wrong.