linux 4.16, buildroot 2018.05
linux is upgraded to 4.16, binutils is upgraded to 2.30, and libelf is installed for the newer kernel. Other configuration changes are changes in defaults and ordering. Now using glibc 2.27. systemd 237, and Go 1.10. vbox-guest is removed because it's upstream as of linux 4.16. More on buildroot at https://git.buildroot.net/buildroot/tree/CHANGESpull/2894/head
parent
7277fb358c
commit
4c4cd31b02
6
Makefile
6
Makefile
|
@ -19,7 +19,7 @@ VERSION_BUILD ?= 0
|
|||
VERSION ?= v$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_BUILD)
|
||||
DEB_VERSION ?= $(VERSION_MAJOR).$(VERSION_MINOR)-$(VERSION_BUILD)
|
||||
INSTALL_SIZE ?= $(shell du out/minikube-windows-amd64.exe | cut -f1)
|
||||
BUILDROOT_BRANCH ?= 2017.11
|
||||
BUILDROOT_BRANCH ?= 2018.05
|
||||
REGISTRY?=gcr.io/k8s-minikube
|
||||
|
||||
HYPERKIT_BUILD_IMAGE ?= karalabe/xgo-1.8.3
|
||||
|
@ -29,7 +29,7 @@ ISO_BUILD_IMAGE ?= $(REGISTRY)/buildroot-image
|
|||
ISO_VERSION ?= v0.26.0
|
||||
ISO_BUCKET ?= minikube/iso
|
||||
|
||||
KERNEL_VERSION ?= 4.9.64
|
||||
KERNEL_VERSION ?= 4.16.14
|
||||
|
||||
GOOS ?= $(shell go env GOOS)
|
||||
GOARCH ?= $(shell go env GOARCH)
|
||||
|
@ -147,7 +147,7 @@ minikube_iso: # old target kept for making tests happy
|
|||
linux-menuconfig:
|
||||
$(MAKE) -C $(BUILD_DIR)/buildroot linux-menuconfig
|
||||
$(MAKE) -C $(BUILD_DIR)/buildroot linux-savedefconfig
|
||||
cp $(BUILD_DIR)/buildroot/output/build/linux-$(KERNEL_VERSION)/defconfig deploy/iso/minikube-iso/board/coreos/minikube/linux-4.9_defconfig
|
||||
cp $(BUILD_DIR)/buildroot/output/build/linux-$(KERNEL_VERSION)/defconfig deploy/iso/minikube-iso/board/coreos/minikube/linux_defconfig
|
||||
|
||||
out/minikube.iso: $(shell find deploy/iso/minikube-iso -type f)
|
||||
ifeq ($(IN_DOCKER),1)
|
||||
|
|
|
@ -504,3 +504,5 @@ CONFIG_KVM=m
|
|||
CONFIG_KVM_INTEL=m
|
||||
CONFIG_KVM_AMD=m
|
||||
CONFIG_VHOST_VSOCK=m
|
||||
CONFIG_VBOXGUEST=m
|
||||
CONFIG_VBOXSF_FS=m
|
|
@ -3,10 +3,8 @@ BR2_CCACHE=y
|
|||
BR2_OPTIMIZE_2=y
|
||||
BR2_TOOLCHAIN_BUILDROOT_VENDOR="minikube"
|
||||
BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
|
||||
BR2_KERNEL_HEADERS_VERSION=y
|
||||
BR2_DEFAULT_KERNEL_VERSION="4.9.64"
|
||||
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_9=y
|
||||
BR2_BINUTILS_VERSION_2_29_X=y
|
||||
BR2_KERNEL_HEADERS_4_16=y
|
||||
BR2_BINUTILS_VERSION_2_30_X=y
|
||||
BR2_GCC_VERSION_7_X=y
|
||||
BR2_TOOLCHAIN_BUILDROOT_CXX=y
|
||||
BR2_GCC_ENABLE_LTO=y
|
||||
|
@ -21,28 +19,27 @@ BR2_ROOTFS_USERS_TABLES="$(BR2_EXTERNAL_MINIKUBE_PATH)/board/coreos/minikube/use
|
|||
BR2_ROOTFS_OVERLAY="$(BR2_EXTERNAL_MINIKUBE_PATH)/board/coreos/minikube/rootfs-overlay"
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.9.64"
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.16.14"
|
||||
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="$(BR2_EXTERNAL_MINIKUBE_PATH)/board/coreos/minikube/linux-4.9_defconfig"
|
||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="$(BR2_EXTERNAL_MINIKUBE_PATH)/board/coreos/minikube/linux_defconfig"
|
||||
BR2_LINUX_KERNEL_NEEDS_HOST_LIBELF=y
|
||||
BR2_PACKAGE_GZIP=y
|
||||
BR2_PACKAGE_XZ=y
|
||||
BR2_PACKAGE_SYSDIG=y
|
||||
BR2_PACKAGE_FINDUTILS=y
|
||||
BR2_PACKAGE_GIT=y
|
||||
BR2_PACKAGE_JQ=y
|
||||
BR2_PACKAGE_CIFS_UTILS=y
|
||||
BR2_PACKAGE_E2TOOLS=y
|
||||
BR2_PACKAGE_NFS_UTILS=y
|
||||
BR2_PACKAGE_SSHFS=y
|
||||
BR2_PACKAGE_PARTED=y
|
||||
BR2_PACKAGE_CA_CERTIFICATES=y
|
||||
BR2_PACKAGE_LIBFUSE=y
|
||||
BR2_PACKAGE_LIBCURL=y
|
||||
BR2_PACKAGE_CURL=y
|
||||
BR2_PACKAGE_BRIDGE_UTILS=y
|
||||
BR2_PACKAGE_EBTABLES=y
|
||||
BR2_PACKAGE_ETHTOOL=y
|
||||
BR2_PACKAGE_IPROUTE2=y
|
||||
BR2_PACKAGE_IPTABLES=y
|
||||
BR2_PACKAGE_OPENSSH=y
|
||||
BR2_PACKAGE_RSYNC=y
|
||||
BR2_PACKAGE_SOCAT=y
|
||||
BR2_PACKAGE_SUDO=y
|
||||
|
@ -59,5 +56,3 @@ BR2_TARGET_ROOTFS_ISO9660=y
|
|||
BR2_TARGET_ROOTFS_ISO9660_BOOT_MENU="$(BR2_EXTERNAL_MINIKUBE_PATH)/board/coreos/minikube/isolinux.cfg"
|
||||
BR2_TARGET_SYSLINUX=y
|
||||
BR2_PACKAGE_HOST_E2TOOLS=y
|
||||
BR2_PACKAGE_SYSDIG=y
|
||||
BR2_PACKAGE_SSHFS=y
|
||||
|
|
|
@ -9,5 +9,4 @@ menu "System tools"
|
|||
source "$BR2_EXTERNAL_MINIKUBE_PATH/package/cni-bin/Config.in"
|
||||
source "$BR2_EXTERNAL_MINIKUBE_PATH/package/cni-plugins-bin/Config.in"
|
||||
source "$BR2_EXTERNAL_MINIKUBE_PATH/package/hv-kvp-daemon/Config.in"
|
||||
source "$BR2_EXTERNAL_MINIKUBE_PATH/package/vbox-guest/Config.in"
|
||||
endmenu
|
||||
|
|
|
@ -9,7 +9,7 @@ CRI_TOOLS_SITE = https://github.com/kubernetes-incubator/cri-tools/archive
|
|||
CRI_TOOLS_SOURCE = $(CRI_TOOLS_VERSION).tar.gz
|
||||
CRI_TOOLS_LICENSE = Apache-2.0
|
||||
CRI_TOOLS_LICENSE_FILES = LICENSE
|
||||
CRI_TOOLS_DEPENDENCIES =
|
||||
CRI_TOOLS_DEPENDENCIES = host-go
|
||||
CRI_TOOLS_GOPATH = $(@D)/_output
|
||||
CRI_TOOLS_ENV = \
|
||||
CGO_ENABLED=1 \
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
CRIO_BIN_VERSION = v1.10.0
|
||||
CRIO_BIN_SITE = https://github.com/kubernetes-incubator/cri-o/archive
|
||||
CRIO_BIN_SOURCE = $(CRIO_BIN_VERSION).tar.gz
|
||||
CRIO_BIN_DEPENDENCIES = libgpgme
|
||||
CRIO_BIN_DEPENDENCIES = host-go libgpgme
|
||||
CRIO_BIN_GOPATH = $(@D)/_output
|
||||
CRIO_BIN_ENV = \
|
||||
CGO_ENABLED=1 \
|
||||
|
|
|
@ -18,11 +18,11 @@ define RKT_BIN_USERS
|
|||
endef
|
||||
|
||||
define RKT_BIN_BUILD_CMDS
|
||||
gpg2 --import $(BR2_DL_DIR)/app-signing-pubkey.gpg
|
||||
gpg2 --import $(BR2_DL_DIR)/rkt-bin/app-signing-pubkey.gpg
|
||||
|
||||
gpg2 \
|
||||
--trusted-key `gpg2 --with-colons --keyid-format long -k security@coreos.com | egrep ^pub | cut -d ':' -f5` \
|
||||
--verify-files $(BR2_DL_DIR)/rkt-v$(RKT_BIN_VERSION).tar.gz.asc
|
||||
--verify-files $(BR2_DL_DIR)/rkt-bin/rkt-v$(RKT_BIN_VERSION).tar.gz.asc
|
||||
|
||||
mkdir -p $(TARGET_DIR)/var/lib/rkt
|
||||
endef
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
config BR2_PACKAGE_VBOX_GUEST
|
||||
bool "vbox-guest"
|
||||
default y
|
||||
depends on BR2_LINUX_KERNEL
|
|
@ -1,6 +0,0 @@
|
|||
# From http://download.virtualbox.org/virtualbox/5.1.30/MD5SUMS
|
||||
md5 4dadcb625f72b8b36a374a52526c682a VirtualBox-5.1.30.tar.bz2
|
||||
|
||||
# From http://download.virtualbox.org/virtualbox/5.1.30/SHA256SUMS
|
||||
sha256 6059b0986c9cdacc533177867634a76331ceccdcd46dddd111a50d1c42846d0b VirtualBox-5.1.30.tar.bz2
|
||||
sha256 631ca8e8d513acf43a75de56a71a31aaffb5624864c57d10346ba657d991ec1e VBoxGuestAdditions_5.1.30.iso
|
|
@ -1,67 +0,0 @@
|
|||
################################################################################
|
||||
#
|
||||
# VirtualBox Linux Guest Drivers
|
||||
#
|
||||
################################################################################
|
||||
|
||||
VBOX_GUEST_VERSION = 5.1.30
|
||||
VBOX_GUEST_SITE = http://download.virtualbox.org/virtualbox/$(VBOX_GUEST_VERSION)
|
||||
VBOX_GUEST_LICENSE = GPLv2
|
||||
VBOX_GUEST_LICENSE_FILES = COPYING
|
||||
VBOX_GUEST_SOURCE = VirtualBox-$(VBOX_GUEST_VERSION).tar.bz2
|
||||
VBOX_GUEST_EXTRA_DOWNLOADS = http://download.virtualbox.org/virtualbox/${VBOX_GUEST_VERSION}/VBoxGuestAdditions_${VBOX_GUEST_VERSION}.iso
|
||||
|
||||
define VBOX_GUEST_EXPORT_MODULES
|
||||
( cd $(@D)/src/VBox/Additions/linux; ./export_modules modules.tar.gz )
|
||||
mkdir -p $(@D)/vbox-modules
|
||||
tar -C $(@D)/vbox-modules -xzf $(@D)/src/VBox/Additions/linux/modules.tar.gz
|
||||
endef
|
||||
|
||||
VBOX_GUEST_POST_EXTRACT_HOOKS += VBOX_GUEST_EXPORT_MODULES
|
||||
|
||||
VBOX_GUEST_MODULE_SUBDIRS = vbox-modules
|
||||
VBOX_GUEST_MODULE_MAKE_OPTS = KVERSION=$(LINUX_VERSION_PROBED)
|
||||
|
||||
define VBOX_GUEST_USERS
|
||||
- -1 vboxsf -1 - - - - -
|
||||
endef
|
||||
|
||||
define VBOX_GUEST_INSTALL_INIT_SYSTEMD
|
||||
$(INSTALL) -D -m 644 \
|
||||
$(BR2_EXTERNAL_MINIKUBE_PATH)/package/vbox-guest/vboxservice.service \
|
||||
$(TARGET_DIR)/usr/lib/systemd/system/vboxservice.service
|
||||
|
||||
ln -fs /usr/lib/systemd/system/vboxservice.service \
|
||||
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/vboxservice.service
|
||||
endef
|
||||
|
||||
define VBOX_GUEST_BUILD_CMDS
|
||||
7z x -aoa $(BR2_DL_DIR)/VBoxGuestAdditions_${VBOX_GUEST_VERSION}.iso -ir'!VBoxLinuxAdditions.run' -o"$(@D)"
|
||||
sh $(@D)/VBoxLinuxAdditions.run --noexec --target $(@D)
|
||||
tar --overwrite -C $(@D) -xjf $(@D)/VBoxGuestAdditions-amd64.tar.bz2 sbin/VBoxService
|
||||
tar --overwrite -C $(@D) -xjf $(@D)/VBoxGuestAdditions-amd64.tar.bz2 bin/VBoxControl
|
||||
|
||||
$(TARGET_CC) -Wall -O2 -D_GNU_SOURCE -DIN_RING3 \
|
||||
-I$(@D)/vbox-modules/vboxsf/include \
|
||||
-I$(@D)/vbox-modules/vboxsf \
|
||||
-o $(@D)/vbox-modules/mount.vboxsf \
|
||||
$(@D)/src/VBox/Additions/linux/sharedfolders/vbsfmount.c \
|
||||
$(@D)/src/VBox/Additions/linux/sharedfolders/mount.vboxsf.c
|
||||
endef
|
||||
|
||||
define VBOX_GUEST_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -Dm755 \
|
||||
$(@D)/vbox-modules/mount.vboxsf \
|
||||
$(TARGET_DIR)/sbin
|
||||
|
||||
$(INSTALL) -Dm755 \
|
||||
$(@D)/sbin/VBoxService \
|
||||
$(TARGET_DIR)/sbin
|
||||
|
||||
$(INSTALL) -Dm755 \
|
||||
$(@D)/bin/VBoxControl \
|
||||
$(TARGET_DIR)/bin
|
||||
endef
|
||||
|
||||
$(eval $(kernel-module))
|
||||
$(eval $(generic-package))
|
|
@ -1,12 +0,0 @@
|
|||
[Unit]
|
||||
Description=VirtualBox Guest Service
|
||||
ConditionVirtualization=oracle
|
||||
|
||||
[Service]
|
||||
ExecStartPre=-/usr/sbin/modprobe vboxguest
|
||||
ExecStartPre=-/usr/sbin/modprobe vboxvideo
|
||||
ExecStartPre=-/usr/sbin/modprobe vboxsf
|
||||
ExecStart=/usr/sbin/VBoxService -f --disable-automount
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue