Re: First experiments with kmod-git and meson build-system

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Oct 19, 2024 at 4:31 PM Emil Velikov <emil.l.velikov@xxxxxxxxx> 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-
[ 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@xxxxxxxxx>
; SPDX-FileCopyrightText: 2024 Lucas De Marchi <lucas.de.marchi@xxxxxxxxx>
;
; 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

[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux