Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ebuild erstellen
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Beelzebub_
Apprentice
Apprentice


Joined: 21 May 2012
Posts: 256
Location: outside/todesstern-2.01

PostPosted: Tue Mar 26, 2013 1:55 pm    Post subject: ebuild erstellen Reply with quote

Hallo,

folgendes, ich möchte mein eigenes Kernel-Ebuild erstellen, darum habe ich mir mal das Ebuild von gentoo-sources angeschaut, jedoch verstehe ich wenig.

Code:
 
1   # Copyright 1999-2013 Gentoo Foundation
2   # Distributed under the terms of the GNU General Public License v2
3   # $Header: $
4   
5   EAPI="5"
6   ETYPE="sources"
7   K_WANT_GENPATCHES="base extras"
8   K_GENPATCHES_VER="7"
9   K_DEBLOB_AVAILABLE="1"
10   inherit kernel-2
11   detect_version
12   detect_arch
13   
14   KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
15   HOMEPAGE="http://dev.gentoo.org/~mpagano/genpatches"
16   IUSE="deblob"
17   
18   DESCRIPTION="Full sources including the Gentoo patchset for the ${KV_MAJOR}.${KV_MINOR} kernel tree"
19   SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI}"
20   
21   pkg_postinst() {
22           kernel-2_pkg_postinst
23           einfo "For more info on this patchset, and how to report problems, see:"
24           einfo "${HOMEPAGE}"
25   }
26   
27   pkg_postrm() {
28           kernel-2_pkg_postrm
29   }


Hat jemand lust mir zu erklären was genau vor sich geht?
_________________
Ich habe keine Angst vorm Sterben, ich habe nur Angst ich habe nicht genug gelebt.
Back to top
View user's profile Send private message
Max Steel
Advocate
Advocate


Joined: 12 Feb 2007
Posts: 2229
Location: My own world! I and Gentoo!

PostPosted: Tue Mar 26, 2013 3:07 pm    Post subject: Reply with quote

Die eigentliche Logic des Ebuilds liegt in der eclass kernel-2.eclass ;)
Das ebuild stellt hier nur die Configurationen für die verwendeten Gentoo-Patchsets und die verwendeten KEYWORDS. Alles andere kommt durch das Eclass (welches eigentlich in der File selbst dokumentiert sein sollte.)
Im übrigen wird empfohlen die kernel-2.eclass auch im eigenen ebuild zu verwenden.
_________________
mfg
Steel
___________________

Heim-PC: AMD Ryzen 5950X, 64GB RAM, GTX 1080
Laptop: Intel Core i5-4300U, 16GB RAM, Intel Graphic
Arbeit-PC: Intel i5-1145G7, 16GB RAM, Intel Iris Xe Graphic (leider WSL2)
Back to top
View user's profile Send private message
bell
Guru
Guru


Joined: 27 Nov 2007
Posts: 510

PostPosted: Tue Mar 26, 2013 4:59 pm    Post subject: Reply with quote

Wozu benötigst Du ein eigenes Ebuild? Falls Du zusätzliche Patches dazu haben willst, die kernel-2.eclass unterstützt die "epatch_user". Also Deine zusätzlichen Patches in das Verzeichnis /etc/portage/patches/sys-kernel/gentoo-sources/ legen (vorher anlegen) und fertig. Also Kernel emergen und Deine Patches werden gleich angewandt.
Back to top
View user's profile Send private message
Beelzebub_
Apprentice
Apprentice


Joined: 21 May 2012
Posts: 256
Location: outside/todesstern-2.01

PostPosted: Tue Mar 26, 2013 5:36 pm    Post subject: Reply with quote

Jo, ich weis aber ich möchte später in ferner Zukunft meinen eigenen Kernel anbieten. :-)
_________________
Ich habe keine Angst vorm Sterben, ich habe nur Angst ich habe nicht genug gelebt.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum