Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
initramfs-with-mca
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
initramfs-with-mca
Commits
b2f2557c
Commit
b2f2557c
authored
Jan 24, 2023
by
Ophélie Gagnard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
generation: Add a default kernel config file.
parent
ea0b950a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4800 additions
and
26 deletions
+4800
-26
generation/20compile-kernel.sh
generation/20compile-kernel.sh
+29
-26
generation/config
generation/config
+4771
-0
No files found.
generation/20compile-kernel.sh
View file @
b2f2557c
...
...
@@ -10,7 +10,6 @@ source generation/00env.sh
nproc
=
32
apt
-y
build-dep linux
mkdir
-p
"
$KERNEL_COMPILATION_DIR
"
&&
cd
"
$KERNEL_COMPILATION_DIR
"
if
[
!
-f
linux-
"
$KERNEL_VERSION
"
.tar.xz
]
;
then
wget https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-
"
$KERNEL_VERSION
"
.tar.xz
...
...
@@ -20,31 +19,35 @@ if [ ! -d linux-"$KERNEL_VERSION" ]; then
fi
cd
linux-
"
$KERNEL_VERSION
"
make olddefconfig
./scripts/config
\
-d
CONFIG_MODULE_SIG_ALL
\
-d
CONFIG_MODULE_SIG_KEY
\
-d
CONFIG_SYSTEM_TRUSTED_KEYS
\
-d
CONFIG_DEBUG_INFO
\
-m
CONFIG_NLS_CODEPAGE_437
\
-m
CONFIG_MSDOS_FS
\
-m
CONFIG_NTFS_FS
#-d ASHMEM \
#-d ANDROID_BINDER_IPC
#-e CONFIG_EFI_STUB
cp
.config .config.backup
# tmp
#sed -i "s/CONFIG_EXT4_FS=m/CONFIG_EXT4_FS=y/g" .config
# embed all "iscsi"/"scsi"-related modules in the kernel
#sed -i 's/CONFIG_\(.*\)SCSI\(.*\)=m/CONFIG_\1SCSI\2=y/g' .config
# embed all "fat" and "vfat"-related modules in the kernel
sed
-i
's/CONFIG_\(.*\)FAT\(.*\)=y/CONFIG_\1FAT\2=m/g'
.config
# embed every modules in the kernel
#sed -i 's/=m$/=y/g' .config
make menuconfig
# keep the options consistent: manually choose exit immediately
if
[
-f
"
$GIT_ROOT
"
/generation/config
]
;
then
cp
"
$GIT_ROOT
"
/generation/config .config
else
make olddefconfig
./scripts/config
\
-d
CONFIG_MODULE_SIG_ALL
\
-d
CONFIG_MODULE_SIG_KEY
\
-d
CONFIG_SYSTEM_TRUSTED_KEYS
\
-d
CONFIG_DEBUG_INFO
\
-m
CONFIG_NLS_CODEPAGE_437
\
-m
CONFIG_MSDOS_FS
\
-m
CONFIG_NTFS_FS
#-d ASHMEM \
#-d ANDROID_BINDER_IPC
#-e CONFIG_EFI_STUB
cp
.config .config.backup
# tmp
#sed -i "s/CONFIG_EXT4_FS=m/CONFIG_EXT4_FS=y/g" .config
# embed all "iscsi"/"scsi"-related modules in the kernel
#sed -i 's/CONFIG_\(.*\)SCSI\(.*\)=m/CONFIG_\1SCSI\2=y/g' .config
# embed all "fat" and "vfat"-related modules in the kernel
sed
-i
's/CONFIG_\(.*\)FAT\(.*\)=y/CONFIG_\1FAT\2=m/g'
.config
# embed every modules in the kernel
#sed -i 's/=m$/=y/g' .config
make menuconfig
# keep the options consistent: manually choose exit immediately
fi
make deb-pkg
-j
"
$(
nproc
)
"
LOCALVERSION
=
-
"
$(
dpkg
--print-architecture
)
"
KDEB_PKGVERSION
=
"
$(
make kernelversion
)
-1"
cd
..
...
...
generation/config
0 → 100644
View file @
b2f2557c
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment