mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-09 16:01:54 -09:00
There are a number of kernel config fixups required for tailscale to
function properly, these are commonly enabled by default in various
kernel configs but lets make sure they are all enabled here as well.
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
(cherry picked from commit 766f6ddb7e)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
49 lines
1.8 KiB
Makefile
49 lines
1.8 KiB
Makefile
################################################################################
|
|
#
|
|
# tailscale
|
|
#
|
|
################################################################################
|
|
|
|
TAILSCALE_VERSION = 1.78.1
|
|
TAILSCALE_SITE = $(call github,tailscale,tailscale,v$(TAILSCALE_VERSION))
|
|
TAILSCALE_LICENSE = BSD-3-Clause
|
|
TAILSCALE_LICENSE_FILES = LICENSE
|
|
TAILSCALE_GOMOD = tailscale.com
|
|
TAILSCALE_CPE_ID_VENDOR = tailscale
|
|
TAILSCALE_BUILD_TARGETS = cmd/tailscale cmd/tailscaled
|
|
TAILSCALE_INSTALL_BINS = tailscale tailscaled
|
|
TAILSCALE_LDFLAGS = \
|
|
-X tailscale.com/version.longStamp=$(TAILSCALE_VERSION) \
|
|
-X tailscale.com/version.shortStamp=$(TAILSCALE_VERSION)
|
|
|
|
define TAILSCALE_INSTALL_INIT_SYSTEMD
|
|
$(INSTALL) -D -m 0644 $(@D)/cmd/tailscaled/tailscaled.defaults \
|
|
$(TARGET_DIR)/etc/default/tailscaled
|
|
$(INSTALL) -D -m 0644 $(@D)/cmd/tailscaled/tailscaled.service \
|
|
$(TARGET_DIR)/usr/lib/systemd/system/tailscaled.service
|
|
endef
|
|
|
|
define TAILSCALE_INSTALL_SYMLINK
|
|
ln -f -s ../bin/tailscaled $(TARGET_DIR)/usr/sbin/tailscaled
|
|
endef
|
|
TAILSCALE_POST_INSTALL_TARGET_HOOKS += TAILSCALE_INSTALL_SYMLINK
|
|
|
|
define TAILSCALE_LINUX_CONFIG_FIXUPS
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_IPV6)
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_IPV6_MULTIPLE_TABLES)
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_NETFILTER)
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_NETFILTER_NETLINK)
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_NFT_CT)
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_NFT_MASQ)
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_NFT_NAT)
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_NF_CONNTRACK)
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_NF_NAT)
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_NF_TABLES)
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_NF_TABLES_INET)
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_NF_TABLES_IPV4)
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_NF_TABLES_IPV6)
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_TUN)
|
|
endef
|
|
|
|
$(eval $(golang-package))
|