From 1063641e6e56346d83bbe2f1fa7d736d7e64b143 Mon Sep 17 00:00:00 2001 From: coolsnowwolf Date: Thu, 14 Nov 2024 13:14:47 +0800 Subject: [PATCH] branding: add LEDE branding --- Config.in | 2 +- Makefile | 2 +- include/image.mk | 2 +- include/prereq-build.mk | 2 +- package/base-files/Makefile | 2 +- package/base-files/files/etc/init.d/system | 2 +- package/base-files/image-config.in | 8 ++++---- package/kernel/mac80211/files/lib/wifi/mac80211.sh | 2 +- target/imagebuilder/Config.in | 2 +- target/sdk/Config.in | 2 +- target/toolchain/Config.in | 2 +- 11 files changed, 14 insertions(+), 14 deletions(-) diff --git a/Config.in b/Config.in index 6d71d4c6e6f291..68bad80b882460 100644 --- a/Config.in +++ b/Config.in @@ -2,7 +2,7 @@ # # Copyright (C) 2006-2013 OpenWrt.org -mainmenu "OpenWrt Configuration" +mainmenu "LEDE Configuration" config MODULES modules diff --git a/Makefile b/Makefile index cff0e1d8d48299..d58aef26c9242f 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ export TOPDIR LC_ALL LANG TZ empty:= space:= $(empty) $(empty) -$(if $(findstring $(space),$(TOPDIR)),$(error ERROR: The path to the OpenWrt directory must not include any spaces)) +$(if $(findstring $(space),$(TOPDIR)),$(error ERROR: The path to the LEDE directory must not include any spaces)) world: diff --git a/include/image.mk b/include/image.mk index b800984e64e43e..e99bd65e20cf4d 100644 --- a/include/image.mk +++ b/include/image.mk @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-only # -# Copyright (C) 2006-2020 OpenWrt.org +# Copyright (C) 2006-2020 LEDE.org override TARGET_BUILD= include $(INCLUDE_DIR)/prereq.mk diff --git a/include/prereq-build.mk b/include/prereq-build.mk index 09ae735059f4d3..c7eae1958fce00 100644 --- a/include/prereq-build.mk +++ b/include/prereq-build.mk @@ -15,7 +15,7 @@ $(eval $(call TestHostCommand,working-make, \ $(MAKE) -v | grep -E 'Make (4\.[1-9]|[5-9]\.)')) $(eval $(call TestHostCommand,case-sensitive-fs, \ - OpenWrt can only be built on a case-sensitive filesystem, \ + LEDE can only be built on a case-sensitive filesystem, \ rm -f $(TMP_DIR)/test.*; touch $(TMP_DIR)/test.fs; \ test ! -f $(TMP_DIR)/test.FS)) diff --git a/package/base-files/Makefile b/package/base-files/Makefile index afc0fbd0b99c7a..7eb93be93cd43a 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -40,7 +40,7 @@ define Package/base-files SECTION:=base CATEGORY:=Base system DEPENDS:=+netifd +libc +jsonfilter +SIGNED_PACKAGES:usign +SIGNED_PACKAGES:openwrt-keyring +NAND_SUPPORT:ubi-utils +fstools +fwtool - TITLE:=Base filesystem for OpenWrt + TITLE:=Base filesystem for LEDE URL:=http://openwrt.org/ VERSION:=$(PKG_RELEASE)-$(REVISION) endef diff --git a/package/base-files/files/etc/init.d/system b/package/base-files/files/etc/init.d/system index dcfc2616c6d844..c651ed500a215b 100755 --- a/package/base-files/files/etc/init.d/system +++ b/package/base-files/files/etc/init.d/system @@ -6,7 +6,7 @@ USE_PROCD=1 validate_system_section() { uci_load_validate system system "$1" "$2" \ - 'hostname:string:OpenWrt' \ + 'hostname:string:LEDE' \ 'conloglevel:uinteger' \ 'buffersize:uinteger' \ 'timezone:string:UTC' \ diff --git a/package/base-files/image-config.in b/package/base-files/image-config.in index 2de2130b8490d9..2882cee1bac760 100644 --- a/package/base-files/image-config.in +++ b/package/base-files/image-config.in @@ -165,7 +165,7 @@ if VERSIONOPT config VERSION_DIST string prompt "Release distribution" - default "OpenWrt" + default "LEDE" help This is the name of the release distribution. If unspecified, it defaults to OpenWrt. @@ -199,13 +199,13 @@ if VERSIONOPT %v .. Configured release version number or "snapshot", lowercase %C .. Configured release revision code or value of %R, uppercase %c .. Configured release revision code or value of %R, lowercase - %D .. Distribution name or "OpenWrt", uppercase - %d .. Distribution name or "openwrt", lowercase + %D .. Distribution name or "LEDE", uppercase + %d .. Distribution name or "lede", lowercase %T .. Target name %S .. Target/Subtarget name %A .. Package architecture %t .. Build taint flags, e.g. "no-all busybox" - %M .. Manufacturer name or "OpenWrt" + %M .. Manufacturer name or "LEDE" %P .. Product name or "Generic" %h .. Hardware revision or "v0" diff --git a/package/kernel/mac80211/files/lib/wifi/mac80211.sh b/package/kernel/mac80211/files/lib/wifi/mac80211.sh index 4c59818501ea10..46ff38f2ef6e42 100644 --- a/package/kernel/mac80211/files/lib/wifi/mac80211.sh +++ b/package/kernel/mac80211/files/lib/wifi/mac80211.sh @@ -181,7 +181,7 @@ detect_mac80211() { set wireless.default_radio${devidx}.device=radio${devidx} set wireless.default_radio${devidx}.network=lan set wireless.default_radio${devidx}.mode=ap - set wireless.default_radio${devidx}.ssid=OpenWrt + set wireless.default_radio${devidx}.ssid=LEDE set wireless.default_radio${devidx}.encryption=none EOF uci -q commit wireless diff --git a/target/imagebuilder/Config.in b/target/imagebuilder/Config.in index c1a5212f6d9bfd..49bb741f7330da 100644 --- a/target/imagebuilder/Config.in +++ b/target/imagebuilder/Config.in @@ -1,5 +1,5 @@ config IB - bool "Build the OpenWrt Image Builder" + bool "Build the LEDE Image Builder" depends on !EXTERNAL_TOOLCHAIN default BUILDBOT help diff --git a/target/sdk/Config.in b/target/sdk/Config.in index 1984e242e721b5..8cdc0449a88302 100644 --- a/target/sdk/Config.in +++ b/target/sdk/Config.in @@ -1,5 +1,5 @@ config SDK - bool "Build the OpenWrt SDK" + bool "Build the LEDE SDK" depends on !EXTERNAL_TOOLCHAIN default BUILDBOT help diff --git a/target/toolchain/Config.in b/target/toolchain/Config.in index 02c486b32021e6..1cfd229d6e4d8f 100644 --- a/target/toolchain/Config.in +++ b/target/toolchain/Config.in @@ -1,5 +1,5 @@ config MAKE_TOOLCHAIN - bool "Package the OpenWrt-based Toolchain" + bool "Package the LEDE-based Toolchain" depends on !EXTERNAL_TOOLCHAIN default BUILDBOT help