/make.kmod.sh (44e692a6b2129875a7d54258d454e572f44a64af) (2199 bytes) (mode 100644) (type blob)
if test x$disable_dynamic = xno; then
################################################################################
sep_start;echo 'dkmod:compile src files'
for kmod_src_file in $kmod_src_files
do
# build an object name which is prefixed with 'd', 'D'ynamic
dkmod_o_file=${kmod_src_file%.c}
dkmod_o_file_name=$(basename $dkmod_o_file)
dkmod_o_file=$(dirname $dkmod_o_file)/d${dkmod_o_file_name}.o
echo "DBIN_CC $kmod_src_file-->$dkmod_o_file"
mkdir -p -- $(dirname $dkmod_o_file)
$dbin_cc -o $dkmod_o_file \
-I./src \
-I$src_path/src/tools \
-I$src_path/src \
$src_path/$kmod_src_file
dkmod_o_files="$dkmod_o_file $dkmod_o_files"
done
sep_end
#-------------------------------------------------------------------------------
mkdir -p -- $fake_root${e_bindir}d
#-------------------------------------------------------------------------------
sep_start;echo 'dkmod:link the object files to produce the dynamic binary'
echo "DBIN_CCLD kmod"
$dbin_ccld -o $fake_root${e_bindir}d/kmod \
$dkmod_o_files \
$fake_root$e_libdir/libkmod.so.$libkmod_so_version
sep_end
################################################################################
fi
if test x$disable_static = xno; then
################################################################################
sep_start;echo 'kmod:compile src files'
for kmod_src_file in $kmod_src_files
do
kmod_o_file=${kmod_src_file%.c}
kmod_o_file=${kmod_o_file}.o
echo "BIN_CC $kmod_src_file-->$kmod_o_file"
mkdir -p -- $(dirname $kmod_o_file)
$bin_cc -o $kmod_o_file \
-I./src/ \
-I$src_path/src/tools \
-I$src_path/src \
$src_path/$kmod_src_file
kmod_o_files="$kmod_o_file $kmod_o_files"
done
sep_end
#-------------------------------------------------------------------------------
mkdir -p -- $fake_root$e_bindir
#-------------------------------------------------------------------------------
sep_start;echo 'kmod:link the object files to produce the static binary'
echo "BIN_CCLD kmod"
$bin_ccld -o $fake_root$e_bindir/kmod \
$kmod_o_files \
$fake_root$e_libdir/libkmod.a
sep_end
################################################################################
fi
Mode |
Type |
Size |
Ref |
File |
100644 |
blob |
24 |
e6022749c4477acab27a7400e6da12dbf9ca459e |
LICENSE |
100644 |
blob |
497 |
67770db1400780a648447bc57fbbb585351597b1 |
README |
100644 |
blob |
160 |
9e3228ba612b2bfdadcc397d05a51fa6d5338da3 |
libkmod.pc.in |
100644 |
blob |
2138 |
95f1c1f9a17b129ffe7010c8b15537be25207678 |
libkmod.sym |
100755 |
blob |
7996 |
eb22eec387e1df3844f99f9a204f0bc218f3b176 |
make |
100644 |
blob |
2199 |
44e692a6b2129875a7d54258d454e572f44a64af |
make.kmod.sh |
100644 |
blob |
2612 |
18374ad1ba5d1534433748e11c6e6d9584d8e589 |
make.libkmod.sh |
040000 |
tree |
- |
3738113a9daf07542e063dab30bbcc4b885d758b |
src |
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"
Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/sylware/nyankmod
Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/sylware/nyankmod
Clone this repository using git:
git clone git://git.rocketgit.com/user/sylware/nyankmod
You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a
merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main