Kaydet (Commit) 2f294c90 authored tarafından Your Name's avatar Your Name

linux ve libre 5.5.1 yükseltildi

üst b648572b
......@@ -33,23 +33,3 @@ def install():
# Generate some module lists to use within mkinitramfs
shelltools.system("./generate-module-list %s/lib/modules/%s-sulinos" % (get.installDIR(), kerneltools.__getSuffix()))
#mkinitcpio default config
inarytools.dodir("/etc/mkinitcpio.d")
shelltools.touch("linux.preset")
shelltools.echo("linux.preset", "# mkinitcpio preset file for the 'linux' package\n" +
'ALL_config="/etc/mkinitcpio.conf"\n'+
'ALL_kver="/boot/kernel-%s"\n\n'% get.srcVERSION() +
"PRESETS=('default' 'fallback') \n\n" +
'#default_config="/etc/mkinitcpio.conf"\n' +
'default_image="/boot/initramfs-%s.img"\n'% get.srcVERSION() +
'#default_options=""\n\n' +
'#fallback_config="/etc/mkinitcpio.conf"\n'+
'fallback_image="/boot/initramfs-%s-fallback.img"\n'% get.srcVERSION() +
'fallback_options="-S autodetect"\n')
inarytools.insinto("/etc/mkinitcpio.d", "linux.preset")
This diff is collapsed.
......@@ -13,10 +13,10 @@
<PartOf>kernel.linux</PartOf>
<Summary>The Linux libre kernel (the core of the Linux operating system) for Sulin</Summary>
<Description>kernel contains the Linux kernel, the core of any Linux operating system. ddtionally libre kernel is a cleant up version of original kernel. The kernel handles the basic functions of the operating system: memory allocation, process allocation, device input and output, etc.</Description>
<Archive sha1sum="dc832c4b6af12a5629a0be4495091b2a3bb06ae8" type="targz">https://gitlab.com/sulinos/linux/libre/-/archive/v5.4-libre/libre-v5.4-libre.tar.gz</Archive>
<Archive sha1sum="9c34799a9488dbe6b6ea18a6f1455b005812f168">http://linux-libre.fsfla.org/pub/linux-libre/releases/5.5.1-gnu/linux-libre-5.5.1-gnu.tar.xz</Archive>
<AdditionalFiles>
<AdditionalFile permission="0755" target="generate-module-list">scripts/generate-module-list</AdditionalFile>
<AdditionalFile permission="0755" target=".config">configs/kernel-x86_64-config-5.4.2-gnu</AdditionalFile>
<AdditionalFile permission="0755" target=".config">configs/kernel-x86_64-config-5.5.1-gnu</AdditionalFile>
</AdditionalFiles>
<BuildDependencies>
<Dependency>bc</Dependency>
......@@ -35,11 +35,7 @@
<Path fileType="executable" permanent="true">/boot</Path>
<Path fileType="library" permanent="true">/lib/modules</Path>
<Path fileType="data">/etc/kernel</Path>
<Path fileType="config" permanent="true">/etc/mkinitcpio.d</Path>
</Files>
<Provides>
<SCOM script="package.py">System.Package</SCOM>
</Provides>
<BuildFlags>
<Flag>noDelta</Flag>
</BuildFlags>
......@@ -50,21 +46,19 @@
<Summary>Kernel header files for external module building</Summary>
<Description>kernel-module-headers includes the C header files and the necessary Kbuild files for being able to build external kernel modules.</Description>
<Files>
<Path fileType="header">/usr/src/linux-headers*</Path>
<Path fileType="header">/usr/src</Path>
<Path fileType="header">/tmp-headers*</Path>
</Files>
</Package>
<Package>
<Name>libre-docs</Name>
<Summary>Documentation and scripts for the Linux kernel</Summary>
<Description>kernel-docs includes several documentation files and scripts for managing several debugging and other tasks.</Description>
<Files>
<Path fileType="header">/usr/src/linux-headers*/Documentation</Path>
</Files>
</Package>
<History>
<Update release="3">
<Date>2020-02-02</Date>
<Version>5.5.1</Version>
<Comment>Package is rebuilded and released up.</Comment>
<Name>Ali Rıza KESKİN</Name>
<Email>parduscix@yandex.ru</Email>
</Update>
<Update release="2">
<Date>2019-12-15</Date>
<Version>5.4.0</Version>
......
#!/usr/bin/python
import os
def read_file(path):
with open(path) as f:
return f.read().strip()
def postInstall(fromVersion, fromRelease, toVersion, toRelease):
gcf = "/boot/grub2/grub.cfg"
if not os.path.isfile(gcf): return
os.environ["PATH"] = "/usr/sbin:/usr/bin:/sbin:/bin"
os.system("grub2-mkconfig -o %s" % gcf)
# Update GRUB entry
#if os.path.exists("/boot/grub/grub.conf"):
# call("grub", "Boot.Loader", "updateKernelEntry", (KVER, ""))
def preRemove():
pass
......@@ -27,34 +27,9 @@ def build():
def install():
kerneltools.install()
# add objtool for external module building and enabled VALIDATION_STACK option
inarytools.insinto("/usr/src/linux-headers-%s-sulinos/tools/objtool" % get.srcVERSION(), "%s/tools/objtool/objtool" % get.curDIR())
# Install kernel headers needed for out-of-tree module compilation
kerneltools.installHeaders()
kerneltools.installLibcHeaders()
# Generate some module lists to use within mkinitramfs
shelltools.system("./generate-module-list %s/lib/modules/%s-sulinos" % (get.installDIR(), kerneltools.__getSuffix()))
#mkinitcpio default config
inarytools.dodir("/etc/mkinitcpio.d")
shelltools.touch("linux.preset")
shelltools.echo("linux.preset", "# mkinitcpio preset file for the 'linux' package\n" +
'ALL_config="/etc/mkinitcpio.conf"\n'+
'ALL_kver="/boot/kernel-%s"\n\n'% get.srcVERSION() +
"PRESETS=('default' 'fallback') \n\n" +
'#default_config="/etc/mkinitcpio.conf"\n' +
'default_image="/boot/initramfs-%s.img"\n'% get.srcVERSION() +
'#default_options=""\n\n' +
'#fallback_config="/etc/mkinitcpio.conf"\n'+
'fallback_image="/boot/initramfs-%s-fallback.img"\n'% get.srcVERSION() +
'fallback_options="-S autodetect"\n')
inarytools.insinto("/etc/mkinitcpio.d", "linux.preset")
......@@ -13,10 +13,10 @@
<PartOf>kernel.linux</PartOf>
<Summary>The Linux kernel (the core of the Linux operating system) for Sulin</Summary>
<Description>kernel contains the Linux kernel, the core of any Linux operating system. The kernel handles the basic functions of the operating system: memory allocation, process allocation, device input and output, etc.</Description>
<Archive sha1sum="d5d947ecc209af6ce553d330f6a807fbef12d55a" type="tarxz">https://www.kernel.org/pub/linux/kernel/v5.x/linux-5.4.2.tar.xz</Archive>
<Archive sha1sum="04a78eff1a4eafdcc4d5493068ed5a7c313e93e4">https://www.kernel.org/pub/linux/kernel/v5.x/linux-5.5.1.tar.xz</Archive>
<AdditionalFiles>
<AdditionalFile permission="0755" target="generate-module-list">scripts/generate-module-list</AdditionalFile>
<AdditionalFile permission="0755" target=".config">configs/kernel-x86_64-config-5.4.2</AdditionalFile>
<AdditionalFile permission="0755" target=".config">configs/kernel-x86_64-config-5.5.1</AdditionalFile>
</AdditionalFiles>
<BuildDependencies>
<Dependency>bc</Dependency>
......@@ -34,11 +34,7 @@
<Path fileType="executable" permanent="true">/boot</Path>
<Path fileType="library" permanent="true">/lib/modules</Path>
<Path fileType="data">/etc/kernel</Path>
<Path fileType="config" permanent="true">/etc/mkinitcpio.d</Path>
</Files>
<Provides>
<SCOM script="package.py">System.Package</SCOM>
</Provides>
<BuildFlags>
<Flag>noDelta</Flag>
</BuildFlags>
......@@ -49,8 +45,7 @@
<Summary>Kernel header files for external module building</Summary>
<Description>kernel-module-headers includes the C header files and the necessary Kbuild files for being able to build external kernel modules.</Description>
<Files>
<Path fileType="header">/usr/src/linux-headers*</Path>
<Path fileType="header">/tmp-headers*</Path>
<Path fileType="header">/usr/src/</Path>
</Files>
</Package>
......@@ -64,16 +59,14 @@
</Files>
</Package>
<Package>
<Name>linux-docs</Name>
<Summary>Documentation and scripts for the Linux kernel</Summary>
<Description>kernel-docs includes several documentation files and scripts for managing several debugging and other tasks.</Description>
<Files>
<Path fileType="header">/usr/src/linux-headers*/Documentation</Path>
</Files>
</Package>
<History>
<Update release="6">
<Date>2020-02-02</Date>
<Version>5.5.1</Version>
<Comment>Package is rebuilded and released up.</Comment>
<Name>Ali Rıza KESKİN</Name>
<Email>parduscix@yandex.ru</Email>
</Update>
<Update release="5">
<Date>2019-12-14</Date>
<Version>5.4.2</Version>
......
#!/usr/bin/python
import os
def read_file(path):
with open(path) as f:
return f.read().strip()
def postInstall(fromVersion, fromRelease, toVersion, toRelease):
gcf = "/boot/grub2/grub.cfg"
if not os.path.isfile(gcf): return
os.environ["PATH"] = "/usr/sbin:/usr/bin:/sbin:/bin"
os.system("grub2-mkconfig -o %s" % gcf)
# Update GRUB entry
#if os.path.exists("/boot/grub/grub.conf"):
# call("grub", "Boot.Loader", "updateKernelEntry", (KVER, ""))
def preRemove():
pass
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment