Skip to content

Commit

Permalink
Revert "Revert "Merge pull request fw876#1388 from fw876/naive""
Browse files Browse the repository at this point in the history
This reverts commit a6a4316.
  • Loading branch information
xiexiaosheng committed Feb 2, 2024
1 parent a6a4316 commit 2c5ff84
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 51 deletions.
18 changes: 7 additions & 11 deletions naiveproxy/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,19 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=naiveproxy
PKG_VERSION:=113.0.5672.62-2
PKG_VERSION:=121.0.6167.71-1
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/klzgrad/naiveproxy/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=75db685789d550094343a76fdcbb6ea2bfcb708c3330af621ca532842251fb26
PKG_HASH:=8e6d3029a0249140595fab3d668103881689f6c7ef7c65230191f674a370b309

PKG_LICENSE:=BSD 3-Clause
PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=Tianling Shen <[email protected]>

PKG_BUILD_DEPENDS:=gn/host
ifneq ($(wildcard $(TOPDIR)/feeds/packages/devel/ninja/ninja.mk),)
PKG_BUILD_DEPENDS+= ninja/host
endif
PKG_BUILD_PARALLEL:=1
PKG_USE_MIPS16:=0
PKG_BUILD_FLAGS:=no-mips16

ifneq ($(CONFIG_CPU_TYPE)," ")
Expand Down Expand Up @@ -59,22 +55,22 @@ ifneq ($(CONFIG_CCACHE),)
export naive_ccache_flags=cc_wrapper="$(CCACHE)"
endif

CLANG_VER:=17-init-4759-g547e3456-1
CLANG_VER:=18-init-12938-geb1d5065-1
CLANG_FILE:=clang-llvmorg-$(CLANG_VER).tgz
define Download/CLANG
URL:=https://commondatastorage.googleapis.com/chromium-browser-clang/Linux_x64
URL_FILE:=$(CLANG_FILE)
FILE:=$(CLANG_FILE)
HASH:=1949427e0030523dc86bdf4b63dac88228cfe05c57318be2d0b0b290297925f6
HASH:=fd1628fdb22157a7328c25802a745f17f92f5210a8b62591202deb92413f52e5
endef

PGO_VER:=5672-1682419203-4df9c2f8b97b0e23303fa2b15279906232abc306
PGO_VER:=6167-1705427108-cb39f8a22759d3159f79efc273ac8b13a0f3882a
PGO_FILE:=chrome-linux-$(PGO_VER).profdata
define Download/PGO_PROF
URL:=https://storage.googleapis.com/chromium-optimization-profiles/pgo_profiles
URL_FILE:=$(PGO_FILE)
FILE:=$(PGO_FILE)
HASH:=5fae812f617d882222cd5aa5620fb355583391127f608759b030c231b71d4c90
HASH:=7632c875db539cb1d4a0df6eb3acc9e155d2d477376dec1f815081bbae7cdd4f
endef

define Build/Prepare
Expand Down Expand Up @@ -103,7 +99,7 @@ define Build/Configure
endef

define Build/Compile
ninja -C "$(PKG_BUILD_DIR)/src/out/Release" naive
+$(NINJA) -C "$(PKG_BUILD_DIR)/src/out/Release" naive
endef

define Package/naiveproxy/install
Expand Down
38 changes: 0 additions & 38 deletions naiveproxy/patches/100-macros.patch

This file was deleted.

12 changes: 10 additions & 2 deletions naiveproxy/src/init_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export naive_flags="
is_official_build=true
exclude_unwind_tables=true
enable_resource_allowlist_generation=false
symbol_level=1
symbol_level=0
is_clang=true
use_sysroot=false
Expand All @@ -64,6 +64,9 @@ enable_reporting=false
include_transport_security_state_preload_list=false
use_nss_certs=false
enable_backup_ref_ptr_support=false
enable_dangling_raw_ptr_checks=false
target_os=\"openwrt\"
target_cpu=\"${naive_arch}\"
target_sysroot=\"${toolchain_dir}\""
Expand All @@ -87,7 +90,12 @@ case "${target_arch}" in
[ -n "${cpu_type}" ] && naive_flags+=" arm_cpu=\"${cpu_type}\""
;;
"mipsel"|"mips64el")
naive_flags+=" use_thin_lto=false chrome_pgo_phase=0 mips_arch_variant=\"r2\""
naive_flags+=" use_thin_lto=false chrome_pgo_phase=0"
if [ -z "${cpu_type}" ]; then
naive_flags+=" mips_arch_variant=\"r1\""
else
naive_flags+=" mips_arch_variant=\"r2\""
fi
if [ "${target_arch}" == "mipsel" ]; then
if [ "${cpu_subtype}" == "24kf" ]; then
naive_flags+=" mips_float_abi=\"hard\""
Expand Down

0 comments on commit 2c5ff84

Please sign in to comment.