1
0
mirror of https://github.com/rancher/os-kernel.git synced 2025-09-18 07:50:43 +00:00

Add make kernel-config command

This commit is contained in:
niusmallnan
2018-08-22 11:56:32 +08:00
parent b1312b34a3
commit 84606f33d5
2 changed files with 27 additions and 0 deletions

View File

@@ -13,6 +13,9 @@ $(TARGETS): .dapper
shell-bind: .dapper
./.dapper -m bind -s
kernel-config: .dapper
./.dapper config-kernel
clean:
@./scripts/clean

24
scripts/config-kernel Executable file
View File

@@ -0,0 +1,24 @@
#!/bin/bash
set -e
cd $(dirname $0)/..
if ! ./scripts/download; then
echo "blah"
exit 1
fi
./scripts/extract
run-parts -v ./scripts/hooks
source scripts/build-common
source scripts/version
DIR=${VERSION}
if [ -e "/source/dist/kernel/linux-${KERNEL_VERSION}-x86.tar.gz" ]; then
echo "skipping kernel build - found linux-${KERNEL_VERSION}-rancher-x86.tar.gz in ./dist/kernel/"
else
cd ${BUILD}/${DIR}
make oldconfig
cp .config ${DIST}/kernel/config
fi