From 6932b7cd37bbd1219d96a37f9f0e4a8188901b01 Mon Sep 17 00:00:00 2001 From: cronyx Date: Fri, 20 Jan 2023 19:13:13 +0300 Subject: [PATCH] add t31 sdio profile (ultimate by default, local build only. clean majestic config) --- .../board/t31/{ => kernel}/t31.sdio.config | 0 .../configs/t31_sdio_defconfig | 111 ++++++++++++++++++ building.sh | 2 +- general/package/majestic/Config.in | 100 ---------------- general/package/majestic/majestic.mk | 4 + 5 files changed, 116 insertions(+), 101 deletions(-) rename br-ext-chip-ingenic/board/t31/{ => kernel}/t31.sdio.config (100%) create mode 100644 br-ext-chip-ingenic/configs/t31_sdio_defconfig diff --git a/br-ext-chip-ingenic/board/t31/t31.sdio.config b/br-ext-chip-ingenic/board/t31/kernel/t31.sdio.config similarity index 100% rename from br-ext-chip-ingenic/board/t31/t31.sdio.config rename to br-ext-chip-ingenic/board/t31/kernel/t31.sdio.config diff --git a/br-ext-chip-ingenic/configs/t31_sdio_defconfig b/br-ext-chip-ingenic/configs/t31_sdio_defconfig new file mode 100644 index 00000000..effb52b1 --- /dev/null +++ b/br-ext-chip-ingenic/configs/t31_sdio_defconfig @@ -0,0 +1,111 @@ +# Architecture +BR2_mipsel=y +BR2_mips_xburst=y +# BR2_MIPS_SOFT_FLOAT is not set +BR2_MIPS_FP32_MODE_32=y +# BR2_MIPS_FP32_MODE_XX is not set +BR2_MIPS_NAN_LEGACY=y +BR2_MIPS_OABI32=y +BR2_KERNEL_HEADERS_VERSION=y +BR2_DEFAULT_KERNEL_VERSION="3.10.14" +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_10=y + +# Toolchain +BR2_PER_PACKAGE_DIRECTORIES=y +BR2_GCC_VERSION_8_X=y +# BR2_TOOLCHAIN_USES_UCLIBC is not set +# BR2_TOOLCHAIN_BUILDROOT_UCLIBC is not set +# BR2_TOOLCHAIN_BUILDROOT_LIBC="uclibc" +BR2_EXTRA_GCC_CONFIG_OPTIONS="--with-float=hard" +BR2_TOOLCHAIN_USES_MUSL=y +BR2_TOOLCHAIN_BUILDROOT_MUSL=y +BR2_TOOLCHAIN_BUILDROOT_LIBC="musl" +BR2_TOOLCHAIN_BUILDROOT_CXX=y +BR2_TOOLCHAIN_BUILDROOT_LOCALE=y +BR2_TOOLCHAIN_BUILDROOT_USE_SSP=y + +# Kernel +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_VERSION=y +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.10.14" +BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y +BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="$(BR2_EXTERNAL_INGENIC_PATH)/board/t31/kernel/t31.sdio.config" +BR2_LINUX_KERNEL_UIMAGE=y +BR2_LINUX_KERNEL_LZMA=y +BR2_LINUX_KERNEL_EXT_INGENIC_PATCHER=y +BR2_LINUX_KERNEL_EXT_INGENIC_PATCHER_LIST="$(BR2_EXTERNAL_INGENIC_PATH)/board/t31/kernel/patches/ $(BR2_EXTERNAL_INGENIC_PATH)/board/t31/kernel/overlay" + +# Filesystem +# BR2_TARGET_TZ_INFO is not set +BR2_TARGET_ROOTFS_CPIO=y +BR2_TARGET_ROOTFS_SQUASHFS=y +BR2_TARGET_ROOTFS_SQUASHFS4_XZ=y +BR2_ROOTFS_OVERLAY="$(TOPDIR)/../general/overlay" +BR2_ROOTFS_POST_BUILD_SCRIPT="$(TOPDIR)/../scripts/executing_commands_for_$(BR2_TOOLCHAIN_BUILDROOT_LIBC).sh" + +# OpenIPC configuration +BR2_TOOLCHAIN_BUILDROOT_VENDOR="openipc" +BR2_TARGET_GENERIC_ISSUE="Welcome to OpenIPC" +BR2_TARGET_GENERIC_HOSTNAME="openipc-t31" +BR2_GLOBAL_PATCH_DIR="$(TOPDIR)/../general/package/all-patches" + +# OpenIPC packages +BR2_PACKAGE_BUSYBOX_CONFIG="$(TOPDIR)/../general/package/busybox/busybox.config" +BR2_PACKAGE_DROPBEAR_OPENIPC=y +# BR2_PACKAGE_FDK_AAC_OPENIPC is not set +BR2_PACKAGE_FWPRINTENV_OPENIPC=y +BR2_PACKAGE_INGENIC_OSDRV_T31=y +BR2_PACKAGE_HASERL=y +# BR2_PACKAGE_HISI_GPIO is not set +BR2_PACKAGE_IPCTOOL=y +BR2_PACKAGE_JSON_C=y +BR2_PACKAGE_JSONFILTER=y +BR2_PACKAGE_LAME_OPENIPC=y +BR2_PACKAGE_LIBCURL_OPENIPC=y +BR2_PACKAGE_LIBCURL_OPENIPC_CURL=y +# BR2_PACKAGE_LIBCURL_OPENIPC_VERBOSE is not set +# BR2_PACKAGE_LIBCURL_OPENIPC_PROXY_SUPPORT is not set +# BR2_PACKAGE_LIBCURL_OPENIPC_COOKIES_SUPPORT is not set +# BR2_PACKAGE_LIBCURL_OPENIPC_EXTRA_PROTOCOLS_FEATURES is not set +BR2_PACKAGE_LIBCURL_OPENIPC_MBEDTLS=y +BR2_PACKAGE_LIBEVENT_OPENIPC=y +BR2_PACKAGE_LIBEVENT_OPENIPC_REMOVE_PYSCRIPT=y +BR2_PACKAGE_LIBOGG_OPENIPC=y +BR2_PACKAGE_LIBWEBSOCKETS_OPENIPC=y +BR2_PACKAGE_LIBYAML=y +BR2_PACKAGE_MAJESTIC_FONTS=y +BR2_PACKAGE_MAJESTIC=y +BR2_PACKAGE_MBEDTLS_OPENIPC=y +# BR2_PACKAGE_MBEDTLS_OPENIPC_PROGRAMS is not set +# BR2_PACKAGE_MBEDTLS_OPENIPC_COMPRESSION is not set +BR2_PACKAGE_MICROBE_WEB=y +# BR2_PACKAGE_MINI_SNMPD is not set +BR2_PACKAGE_MOTORS=y +BR2_PACKAGE_OPUS_OPENIPC=y +BR2_PACKAGE_OPUS_OPENIPC_FIXED_POINT=y +# BR2_PACKAGE_SSHPASS is not set +BR2_PACKAGE_UACME_OPENIPC=y +BR2_PACKAGE_VTUND_OPENIPC=y +BR2_PACKAGE_YAML_CLI=y +BR2_PACKAGE_QUIRC_OPENIPC=y + +# WiFi +BR2_PACKAGE_WIRELESS_TOOLS=y +BR2_PACKAGE_WPA_SUPPLICANT=y +BR2_PACKAGE_WPA_SUPPLICANT_CLI=y +BR2_PACKAGE_WPA_SUPPLICANT_NL80211=y +BR2_PACKAGE_WPA_SUPPLICANT_PASSPHRASE=y +BR2_PACKAGE_LINUX_FIRMWARE_OPENIPC=y +BR2_PACKAGE_LINUX_FIRMWARE_OPENIPC_MT7601U=y +# BR2_PACKAGE_RTL8188EU is not set + +# WIREGUARD +BR2_PACKAGE_WIREGUARD_LINUX_COMPAT=y +BR2_PACKAGE_WIREGUARD_TOOLS=y + +# ZEROTIER +BR2_PACKAGE_ZEROTIER_ONE=y + +# DEBUG +BR2_PACKAGE_HOST_GDB=y +BR2_PACKAGE_GDB=y diff --git a/building.sh b/building.sh index 100bc550..b50a6890 100755 --- a/building.sh +++ b/building.sh @@ -159,7 +159,7 @@ should_fit() { } rename() { - if grep -q ultimate_defconfig ./output/.config || grep -q fpv_defconfig ./output/.config; then + if grep -q ultimate_defconfig ./output/.config || grep -q fpv_defconfig ./output/.config || grep -q sdio_defconfig ./output/.config; then should_fit uImage $MAX_KERNEL_SIZE_ULTIMATE should_fit rootfs.squashfs $MAX_ROOTFS_SIZE_ULTIMATE else diff --git a/general/package/majestic/Config.in b/general/package/majestic/Config.in index 5d27ed6a..fc673d58 100644 --- a/general/package/majestic/Config.in +++ b/general/package/majestic/Config.in @@ -6,103 +6,3 @@ config BR2_PACKAGE_MAJESTIC (non-commercial version for personal use only) https://openipc.org - -config BR2_PACKAGE_AMBARELLA_OSDRV_S3L - bool - default n - -config BR2_PACKAGE_ANYKA_OSDRV_AK3918EV200 - bool - default n - -config BR2_PACKAGE_ANYKA_OSDRV_AK3918EV300 - bool - default n - -config BR2_PACKAGE_FULLHAN_OSDRV_FH8852V100 - bool - default n - -config BR2_PACKAGE_FULLHAN_OSDRV_FH8852V200 - bool - default n - -config BR2_PACKAGE_GOKE_OSDRV_GK710X - bool - default n - -config BR2_PACKAGE_GOKE_OSDRV_GK7205V200 - bool - default n - -config BR2_PACKAGE_GRAINMEDIA_OSDRV_GM8136 - bool - default n - -config BR2_PACKAGE_HISILICON_OSDRV_HI3516AV100 - bool - default n - -config BR2_PACKAGE_HISILICON_OSDRV_HI3519V101 - bool - default n - -config BR2_PACKAGE_HISILICON_OSDRV_HI3516CV100 - bool - default n - -config BR2_PACKAGE_HISILICON_OSDRV_HI3516CV200 - bool - default n - -config BR2_PACKAGE_HISILICON_OSDRV_HI3516CV300 - bool - default n - -config BR2_PACKAGE_HISILICON_OSDRV_HI3516CV500 - bool - default n - -config BR2_PACKAGE_HISILICON_OSDRV_HI3516EV200 - bool - default n - -config BR2_PACKAGE_INGENIC_OSDRV_T20 - bool - default n - -config BR2_PACKAGE_INGENIC_OSDRV_T21 - bool - default n - -config BR2_PACKAGE_INGENIC_OSDRV_T30 - bool - default n - -config BR2_PACKAGE_INGENIC_OSDRV_T31 - bool - default n - -config BR2_PACKAGE_NOVATEK_OSDRV_NT9856X - bool - default n - -config BR2_PACKAGE_ROCKCHIP_OSDRV_RV11xx - bool - default n - -config BR2_PACKAGE_SIGMASTAR_OSDRV_MSC313E - bool - default n - -config BR2_PACKAGE_SIGMASTAR_OSDRV_SSC335 - bool - default n - -config BR2_PACKAGE_XIONGMAI_OSDRV_XM510 - bool - default n - -config BR2_PACKAGE_XIONGMAI_OSDRV_XM530 - bool - default n diff --git a/general/package/majestic/majestic.mk b/general/package/majestic/majestic.mk index a7c0268f..ff87eb00 100644 --- a/general/package/majestic/majestic.mk +++ b/general/package/majestic/majestic.mk @@ -13,6 +13,10 @@ FAMILY := $(shell grep "/board/" $(BR2_CONFIG) | head -1 | cut -d "/" -f 3) RELEASE := $(shell grep "BR2_DEFCONFIG" $(BR2_CONFIG) | head -1 | cut -d "_" -f 3) +ifeq ($(RELEASE),sdio) + RELEASE := ultimate +endif + ifeq ($(RELEASE),ultimate) # we don't have Majestic binary Ultimate distributions for these # platforms so use Lite