initial kernel headers work
This commit is contained in:
parent
afc88c9d6c
commit
3752b0d1b1
|
@ -3,7 +3,11 @@ 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
|
||||
|
@ -16,4 +20,8 @@ debhelper-build-stamp
|
|||
*.log
|
||||
*.substvars
|
||||
*.diff.gz
|
||||
*.upload
|
||||
*.upload
|
||||
|
||||
#kernel image specific ignores
|
||||
prawnos-linux-headers-armhf_*.orig.tar.gz
|
||||
prawnos-linux-headers-armhf_*.debian.tar.xz
|
|
@ -0,0 +1,63 @@
|
|||
.DEFAULT_GOAL := default
|
||||
#import all shared make vars
|
||||
PRAWNOS_ROOT := $(shell git rev-parse --show-toplevel)
|
||||
include $(PRAWNOS_ROOT)/scripts/BuildScripts/BuildCommon.mk
|
||||
|
||||
#package specific vars
|
||||
VERSION := $(PRAWNOS_KERNEL_HEADERS_CAT_VER)
|
||||
PACKAGE := prawnos-linux-headers-armhf
|
||||
PACKAGE_ARCH := armhf
|
||||
|
||||
#uses the full debian version for the package name
|
||||
PACKAGE_NAME := $(PACKAGE)_$(VERSION)_$(PACKAGE_ARCH)
|
||||
PACKAGE_NAME_DEB := $(PACKAGE_NAME).deb
|
||||
#uses only the upstream kernel version for the orig tar
|
||||
PACKAGE_NAME_ORIG := $(PACKAGE)_$(KVER)-$(PRAWNOS_KERNEL_VER)
|
||||
PACKAGE_NAME_ORIG_TAR := $(PACKAGE_NAME_ORIG).orig.tar.gz
|
||||
|
||||
default: $(PACKAGE_NAME_DEB)
|
||||
|
||||
|
||||
$(PACKAGE_NAME_DEB): $(PACKAGE_NAME_ORIG_TAR)
|
||||
@echo Building $@
|
||||
# keep the /debian files up to date with the current kernel version
|
||||
$(PRAWNOS_KERNEL_SCRIPTS_UPDATE_DEB_FILES) $(PRAWNOS_KERNEL_PACKAGE_IMAGE)/src $(VERSION)
|
||||
|
||||
$(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
|
||||
tar -czf $(PACKAGE_NAME_ORIG_TAR) -C $(PRAWNOS_KERNEL_BUILD)/ .
|
||||
|
||||
|
||||
.PHONY: clean_all
|
||||
clean_all: clean clean_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
|
||||
# kernel package specific
|
||||
rm -f orig/$(PACKAGE)_*-*
|
||||
|
||||
#when just changing the debian package version, if we remake the orig as well then reprepro will complain on upload. So we might not always want to remove the orig.
|
||||
.PHONY: clean_orig
|
||||
clean_orig:
|
||||
rm -f $(PACKAGE)_*-*.orig.tar.gz
|
||||
|
||||
.PHONY: upload
|
||||
upload:
|
||||
$(PRAWNOS_PACKAGE_SCRIPTS_UPLOAD)
|
|
@ -0,0 +1,5 @@
|
|||
prawnos-linux (5.4.29-3-1) buster; urgency=low
|
||||
|
||||
* Initial prawnos linux kernel headers, glibc
|
||||
|
||||
-- Hal Emmerich <hal@halemmerich.com> Mon, 13 Jul 2020 22:55:18 -0700
|
|
@ -0,0 +1,22 @@
|
|||
Source: prawnos-linux
|
||||
Section: kernel
|
||||
Priority: optional
|
||||
Maintainer: Hal Emmerich <hal@halemmerich.com>
|
||||
Build-Depends: bc, rsync, kmod, cpio, bison, flex | flex:native , , libssl-dev:native
|
||||
|
||||
Package: prawnos-linux-headers-armhf
|
||||
Architecture: armhf
|
||||
Section: devel
|
||||
Description: PrawnOS Linux-libre headers for armhf
|
||||
This package provides kernel header files for armhf
|
||||
.
|
||||
This is useful for people who need to build external modules
|
||||
|
||||
Package: prawnos-linux-libc-dev
|
||||
Section: devel
|
||||
Provides: linux-kernel-headers
|
||||
Architecture: armhf
|
||||
Description: Linux support headers for userspace development
|
||||
This package provides userspaces headers from the GNU Linux-libre. These headers
|
||||
are used by the installed headers for GNU glibc and other system libraries.
|
||||
Multi-Arch: same
|
|
@ -0,0 +1,16 @@
|
|||
This is a packacked upstream version of the GNU Linux-libre.
|
||||
|
||||
The sources may be found at most Linux archive sites, including:
|
||||
https://linux-libre.fsfla.org/
|
||||
|
||||
Copyright: 1991 - 2018 Linus Torvalds and others.
|
||||
|
||||
The git repository for mainline kernel development is at:
|
||||
/*(DEBLOBBED)*/
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; version 2 dated June, 1991.
|
||||
|
||||
On Debian GNU/Linux systems, the complete text of the GNU General Public
|
||||
License version 2 can be found in `/usr/share/common-licenses/GPL-2'.
|
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/make -f
|
||||
|
||||
srctree ?= .
|
||||
|
||||
build:
|
||||
$(MAKE) KERNELRELEASE=5.4.29-gnu ARCH=arm KBUILD_BUILD_VERSION=1 -f $(srctree)/Makefile
|
||||
|
||||
binary-arch:
|
||||
$(MAKE) KERNELRELEASE=5.4.29-gnu ARCH=arm KBUILD_BUILD_VERSION=1 -f $(srctree)/Makefile intdeb-pkg
|
||||
|
||||
clean:
|
||||
rm -rf debian/*tmp debian/files
|
||||
|
||||
binary: binary-arch
|
|
@ -0,0 +1 @@
|
|||
1.0
|
Reference in New Issue