编译 openwrt 的 Xray-croe 如何指定使用最新源码编译? #3158
-
比如这个文件中 https:/chika0801/helloworld/blob/test/xray-core/Makefile#L8
是修改 PKG_VERSION:=1.8.9 和 PKG_HASH 来获取指定版本 我想实现每次编译时,下载最新的源码来编译。请问如何修改这个 Makefile 文件。 我问过GPT没解决这问题。 |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 3 replies
-
include $(TOPDIR)/rules.mk
PKG_NAME:=xray-core
PKG_VERSION:=snap-yy.mm.dd.hh.ss
PKG_RELEASE:=1
PKG_SOURCE_URL:=https:/XTLS/Xray-core.git
PKG_SOURCE_PROTO:=git
PKG_SOURCE_SUBDIR=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=master
PKG_MIRROR_HASH=skip
PKG_MAINTAINER:=rprx
PKG_LICENSE:=GPL-2.0
PKG_LICENSE_FILES:=LICENSE https:/search?q=%22PKG_SOURCE_VERSION%3A%3Dmaster%22&type=code |
Beta Was this translation helpful? Give feedback.
-
Thank you for your reply. I tested this method and it failed to compile. |
Beta Was this translation helpful? Give feedback.
-
虽然这个错误不在本题讨论范围内, 更新: 看了下你的库,解决方案其实是把这个放进去。 上边那个patch,如果你移植了go-1.22到op上就得删,反之就不用删。 再更新: 把一楼点成 answer ,谢谢 |
Beta Was this translation helpful? Give feedback.
-
感谢你的回复。不懂op编译方面的知识,都是入门极操作见谅。 我现在测试的: makefile的文件夹,删除了 编译固件的文件 失败结果 请问一下 |
Beta Was this translation helpful? Give feedback.
-
把这个提交 revert 就可以编出来了。 你的编的op里没有go-1.22,所以不需要删:
|
Beta Was this translation helpful? Give feedback.
-
这是改后,编译的结果。没有报错。 |
Beta Was this translation helpful? Give feedback.
-
再次感谢你的回复,虽然我没成功。 我找到了解决方法,我去 /usr/bin 目录下,替换xray文件就能测试了。 我的路由器是红米AX6000,使用 Xray-linux-arm64-v8a 文件 |
Beta Was this translation helpful? Give feedback.
https:/search?q=%22PKG_SOURCE_VERSION%3A%3Dmaster%22&type=code