linux-modules.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sedat Dilek <sedat.dilek@gmail.com>
To: Emil Velikov <emil.l.velikov@gmail.com>
Cc: "Marco d'Itri" <md@linux.it>,
	Lucas De Marchi <lucas.de.marchi@gmail.com>,
	 linux-modules@vger.kernel.org,
	Tobias Stoeckmann <tobias@stoeckmann.org>
Subject: Re: First experiments with kmod-git and meson build-system
Date: Sun, 20 Oct 2024 00:07:33 +0200	[thread overview]
Message-ID: <CA+icZUXt5iDqw43-vxCamYFpz0SpaiWNfgkj8e+a5LwK9E5n+A@mail.gmail.com> (raw)
In-Reply-To: <CACvgo50dFQHROV+JhJOgutDOTYQg4R9aWTJdBXXhNWjR_rF9Bw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1273 bytes --]

On Sat, Oct 19, 2024 at 4:31 PM Emil Velikov <emil.l.velikov@gmail.com> wrote:
...
> > [built-in options]
> > -buildtype = 'debugoptimized'
> > +;buildtype = 'debugoptimized'
> >
> > ^^ What buildtype other than above exists?
> >
>
> Check the meson website - it describes them quite well [2]
>
> [2] https://mesonbuild.com/Builtin-options.html#details-for-buildtype
>
> -Emil
>

Thanks.

In my custom INI file:

[built-in options]
buildtype = 'release'

and:

sudo meson install --strip -C ../build

Results:

# file /bin/kmod /usr/lib/x86_64-linux-gnu/libkmod.so.2.5.0
/bin/kmod:                                  ELF 64-bit LSB pie
executable, x86-64, version 1 (SYSV), dynamically linked, interpreter
/lib64/ld-linux-x86-64.so.2, Build
ID[sha1]=ef45146171c0036544a9345fbd7d0c96e3fa4cc3, for GNU/Linux 3.2.0, stripped
/usr/lib/x86_64-linux-gnu/libkmod.so.2.5.0: ELF 64-bit LSB shared
object, x86-64, version 1 (SYSV), dynamically linked,
BuildID[sha1]=725a4446b481b380588011e4e8733c1db
eed3c82, stripped

# ll /bin/kmod /usr/lib/x86_64-linux-gnu/libkmod.so.2.5.0
-rwxr-xr-x 1 root root 172K 19. Okt 23:51 /bin/kmod
-rwxr-xr-x 1 root root 103K 19. Okt 23:51
/usr/lib/x86_64-linux-gnu/libkmod.so.2.5.0

Best regards,
-Sedat-

[-- Attachment #2: howto-build-kmod-from-git.txt --]
[-- Type: text/plain, Size: 1280 bytes --]

[ PREREQS ]

apt-get update

# man-pages
apt-get install -t unstable scdoc -s
apt-get install -t unstable scdoc -y

# docs
##apt-get install -t unstable gtk-doc-tools -s
##apt-get install -t unstable gtk-doc-tools -y


[ BASE-DIR ]

BASE_DIR="$HOME/src/kmod"

mkdir $BASE_DIR

[ KMOD GIT ]

cd $BASE_DIR

git clone git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git git

[ build-dileks.ini ]

; SPDX-FileCopyrightText: 2024 Emil Velikov <emil.l.velikov@gmail.com>
; SPDX-FileCopyrightText: 2024 Lucas De Marchi <lucas.de.marchi@gmail.com>
;
; SPDX-License-Identifier: LGPL-2.1-or-later

[project options]
build-tests = false
debug-messages = false
docs = false
zstd = 'enabled'
xz = 'enabled'
zlib = 'enabled'
openssl = 'enabled'
werror = true
;b_sanitize = 'address,undefined'

[built-in options]
buildtype = 'release'
- EOF -

NOTE: build-tests option requires linux-headers package(s) to be installed!

[ BUILD-DIR ]
 
cd $BASE_DIR

mkdir build 

[ CONFIGURE ]

cd git

meson setup --native-file build-dileks.ini ../build

[ BUILD ]

meson compile -C ../build

[ INSTALL ]

sudo meson install --strip -C ../build


-dileks // 19-Oct-2024: Update to kmod-v33-314-g557e79c360a3; Use buildtype = 'release' and add '--strip' to install
-dileks // 18-Oct-2024: Initial release

  reply	other threads:[~2024-10-19 22:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-18  9:18 Status next kmod version 34 Sedat Dilek
2024-10-18 10:47 ` First experiments with kmod-git and meson build-system Sedat Dilek
2024-10-18 12:01   ` Emil Velikov
2024-10-19 11:34     ` Sedat Dilek
2024-10-19 14:30       ` Emil Velikov
2024-10-19 22:07         ` Sedat Dilek [this message]
2024-10-19 22:09           ` Sedat Dilek
2024-10-19 22:27             ` Sedat Dilek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+icZUXt5iDqw43-vxCamYFpz0SpaiWNfgkj8e+a5LwK9E5n+A@mail.gmail.com \
    --to=sedat.dilek@gmail.com \
    --cc=emil.l.velikov@gmail.com \
    --cc=linux-modules@vger.kernel.org \
    --cc=lucas.de.marchi@gmail.com \
    --cc=md@linux.it \
    --cc=tobias@stoeckmann.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).