mirror of
https://github.com/ApfelTeeSaft/vanilla.git
synced 2026-08-26 19:33:44 +00:00
initial buildroot commit
This commit is contained in:
@@ -0,0 +1 @@
|
||||
source "$BR2_EXTERNAL_VANILLA_PATH/package/Config.in"
|
||||
@@ -0,0 +1,23 @@
|
||||
start_file=start.elf
|
||||
fixup_file=fixup.dat
|
||||
|
||||
kernel=zImage
|
||||
|
||||
# To use an external initramfs file
|
||||
#initramfs rootfs.cpio.gz
|
||||
|
||||
# Disable overscan assuming the display supports displaying the full resolution
|
||||
# If the text shown on the screen disappears off the edge, comment this out
|
||||
disable_overscan=1
|
||||
|
||||
# How much memory in MB to assign to the GPU on Pi models having
|
||||
# 256, 512 or 1024 MB total memory
|
||||
gpu_mem_256=100
|
||||
gpu_mem_512=100
|
||||
gpu_mem_1024=100
|
||||
|
||||
# Enable UART0 for serial console on ttyAMA0
|
||||
dtoverlay=miniuart-bt
|
||||
|
||||
# Enable KMSDRM
|
||||
dtoverlay=vc4-kms-v3d
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1 @@
|
||||
name: VANILLA
|
||||
@@ -0,0 +1 @@
|
||||
include $(sort $(wildcard $(BR2_EXTERNAL_VANILLA_PATH)/package/*/*.mk))
|
||||
@@ -0,0 +1,20 @@
|
||||
diff --git a/package/Makefile.in b/package/Makefile.in
|
||||
index 829636900b..525316607d 100644
|
||||
--- a/package/Makefile.in
|
||||
+++ b/package/Makefile.in
|
||||
@@ -276,7 +276,6 @@ export PERL=$(shell which perl)
|
||||
export PERL5LIB=$(HOST_DIR)/lib/perl
|
||||
|
||||
TARGET_MAKE_ENV = \
|
||||
- GIT_DIR=. \
|
||||
PATH=$(BR_PATH)
|
||||
|
||||
TARGET_CONFIGURE_OPTS = \
|
||||
@@ -321,7 +320,6 @@ TARGET_CONFIGURE_OPTS = \
|
||||
|
||||
|
||||
HOST_MAKE_ENV = \
|
||||
- GIT_DIR=. \
|
||||
PATH=$(BR_PATH) \
|
||||
PKG_CONFIG="$(PKG_CONFIG_HOST_BINARY)" \
|
||||
PKG_CONFIG_SYSROOT_DIR="/" \
|
||||
@@ -0,0 +1,3 @@
|
||||
source "$BR2_EXTERNAL_VANILLA_PATH/package/nexmon/Config.in"
|
||||
source "$BR2_EXTERNAL_VANILLA_PATH/package/rpi-ffmpeg/Config.in"
|
||||
source "$BR2_EXTERNAL_VANILLA_PATH/package/vanilla/Config.in"
|
||||
@@ -0,0 +1,10 @@
|
||||
comment "Nexmon needs a Linux kernel to be built"
|
||||
depends on !BR2_LINUX_KERNEL
|
||||
|
||||
config BR2_PACKAGE_NEXMON
|
||||
bool "nexmon"
|
||||
depends on BR2_LINUX_KERNEL
|
||||
help
|
||||
Install patched brcmfmac driver from Nexmon
|
||||
|
||||
https://github.com/seemoo-lab/nexmon
|
||||
@@ -0,0 +1,13 @@
|
||||
NEXMON_VERSION = master
|
||||
NEXMON_SITE = $(call github,seemoo-lab,nexmon,$(NEXMON_VERSION))
|
||||
NEXMON_LICENSE = GPL-3.0
|
||||
NEXMON_LICENSE_FILES = LICENSE.txt
|
||||
|
||||
LD_VERSION := $(subst ., ,$(lastword $(BR2_LINUX_KERNEL_VERSION)))
|
||||
LD_MAJOR_VER := $(word 1,$(LD_VERSION))
|
||||
LD_MINOR_VER := $(word 2,$(LD_VERSION))
|
||||
|
||||
NEXMON_MODULE_SUBDIRS = patches/driver/brcmfmac_$(LD_MAJOR_VER).$(LD_MINOR_VER).y-nexmon
|
||||
|
||||
$(eval $(kernel-module))
|
||||
$(eval $(generic-package))
|
||||
@@ -0,0 +1,6 @@
|
||||
config BR2_PACKAGE_VANILLA
|
||||
bool "vanilla"
|
||||
help
|
||||
Install Vanilla, the Wii U gamepad reimplementation
|
||||
|
||||
https://github.com/vanilla-wiiu/vanilla
|
||||
@@ -0,0 +1,8 @@
|
||||
VANILLA_VERSION = optimizations
|
||||
VANILLA_SITE = $(call github,vanilla-wiiu,vanilla,$(VANILLA_VERSION))
|
||||
VANILLA_LICENSE = GPL-2.0
|
||||
VANILLA_LICENSE_FILES = LICENSE
|
||||
VANILLA_CONF_OPTS = -DVANILLA_BUILD_USE_LIBNM=OFF -DVANILLA_BUILD_USE_POLKIT=OFF -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DVANILLA_BUILD_USE_VAAPI=OFF
|
||||
VANILLA_SUPPORTS_IN_SOURCE_BUILD = NO
|
||||
|
||||
$(eval $(cmake-package))
|
||||
@@ -0,0 +1,46 @@
|
||||
diff --git a/linux/linux.mk b/linux/linux.mk
|
||||
index 16762ac2e6..86875d050f 100644
|
||||
--- a/linux/linux.mk
|
||||
+++ b/linux/linux.mk
|
||||
@@ -193,6 +193,8 @@ ifeq ($(BR2_BINFMT_FDPIC),y)
|
||||
LINUX_CFLAGS += -mno-fdpic
|
||||
endif
|
||||
|
||||
+LINUX_CFLAGS += -Wno-maybe-uninitialized -Wno-address-of-packed-member -Wno-stringop-truncation -Wno-address -Wno-array-bounds -Wno-stringop-overread
|
||||
+
|
||||
ifeq ($(BR2_LINUX_KERNEL_DTB_OVERLAY_SUPPORT),y)
|
||||
LINUX_MAKE_ENV += DTC_FLAGS=-@
|
||||
endif
|
||||
@@ -538,6 +540,23 @@ endif
|
||||
# issues.
|
||||
# The call to disable gcc-plugins is a stop-gap measure:
|
||||
# https://lore.kernel.org/buildroot/20200512095550.GW12536@scaer
|
||||
+NX_VER = linux-dev
|
||||
+NV_VER = linux-dev
|
||||
+NG_VER = linux-3.4.0-r32.5
|
||||
+DT_VER = l4t/l4t-r32.5
|
||||
+KERNEL_DIR = output/build
|
||||
+
|
||||
+define LINUX_ACQUIRE_DEPS
|
||||
+ git clone -b $(NV_VER) --single-branch https://github.com/CTCaer/switch-l4t-kernel-nvidia.git "$(KERNEL_DIR)/nvidia"
|
||||
+ git clone -b $(NX_VER) --single-branch https://github.com/CTCaer/switch-l4t-platform-t210-nx.git "$(KERNEL_DIR)/hardware/nvidia/platform/t210/nx"
|
||||
+ git clone -b $(NG_VER) --single-branch https://gitlab.com/switchroot/kernel/l4t-kernel-nvgpu "$(KERNEL_DIR)/nvgpu"
|
||||
+ git clone -b $(DT_VER) --single-branch https://gitlab.com/switchroot/kernel/l4t-soc-t210 "$(KERNEL_DIR)/hardware/nvidia/soc/t210"
|
||||
+ git clone -b $(DT_VER) --single-branch https://gitlab.com/switchroot/kernel/l4t-soc-tegra "$(KERNEL_DIR)/hardware/nvidia/soc/tegra/"
|
||||
+ git clone -b $(DT_VER) --single-branch https://gitlab.com/switchroot/kernel/l4t-platform-tegra-common "$(KERNEL_DIR)/hardware/nvidia/platform/tegra/common/"
|
||||
+ git clone -b $(DT_VER) --single-branch https://gitlab.com/switchroot/kernel/l4t-platform-t210-common "$(KERNEL_DIR)/hardware/nvidia/platform/t210/common/"
|
||||
+endef
|
||||
+LINUX_POST_EXTRACT_HOOKS += LINUX_ACQUIRE_DEPS
|
||||
+
|
||||
define LINUX_BUILD_CMDS
|
||||
$(call KCONFIG_DISABLE_OPT,CONFIG_GCC_PLUGINS)
|
||||
$(foreach dts,$(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_DTS_PATH)), \
|
||||
@@ -589,6 +608,8 @@ ifeq ($(BR2_STRIP_strip),y)
|
||||
LINUX_MAKE_FLAGS += INSTALL_MOD_STRIP=1
|
||||
endif
|
||||
|
||||
+LINUX_MAKE_FLAGS += tegra-dtstree=../hardware/nvidia
|
||||
+
|
||||
define LINUX_INSTALL_TARGET_CMDS
|
||||
$(LINUX_INSTALL_KERNEL_IMAGE_TO_TARGET)
|
||||
# Install modules and remove symbolic links pointing to build
|
||||
Reference in New Issue
Block a user