Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
btwise
OpenCorePKG_MOD
提交
e7e3a5cd
O
OpenCorePKG_MOD
项目概览
btwise
/
OpenCorePKG_MOD
通知
26
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
OpenCorePKG_MOD
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
e7e3a5cd
编写于
4月 26, 2021
作者:
V
vit9696
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Build: Add Linux userspace utility bundling
上级
53b0312d
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
32 addition
and
10 deletion
+32
-10
.github/workflows/main.yml
.github/workflows/main.yml
+9
-0
.gitignore
.gitignore
+1
-0
Changelog.md
Changelog.md
+1
-0
User/Makefile
User/Makefile
+11
-7
build_oc.tool
build_oc.tool
+10
-3
未找到文件。
.github/workflows/main.yml
浏览文件 @
e7e3a5cd
...
...
@@ -23,6 +23,15 @@ jobs:
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Add Linux Toolchain
run
:
brew tap MarioSchwalbe/gcc-musl-cross
-
name
:
Install Linux Toolchain
run
:
brew install gcc-8-musl-cross --without-armhf --without-aarch64
env
:
HOMEBREW_NO_INSTALL_CLEANUP
:
1
HOMEBREW_NO_AUTO_UPDATE
:
1
-
name
:
Install Dependencies
run
:
brew install openssl mingw-w64
env
:
...
...
.gitignore
浏览文件 @
e7e3a5cd
...
...
@@ -7,6 +7,7 @@ xcshareddata
xcuserdata
project.xcworkspace
*.dSYM
*.linux
Utilities/AppleEfiSignTool/AppleEfiSignTool
Utilities/ACPIe/ACPIe
Utilities/acdtinfo/acdtinfo
...
...
Changelog.md
浏览文件 @
e7e3a5cd
...
...
@@ -17,6 +17,7 @@ OpenCore Changelog
-
Added vector acceleration of SHA-512 and SHA-384 hashing algorithms, thx @MikhailKrichanov
-
Fixed wraparound when using arrow keys in OpenCanopy
-
Updated builtin firmware versions for SMBIOS and the rest
-
Added bundled Linux versions for userspace utilities
#### v0.6.8
-
Switched to VS2019 toolchain for Windows builds
...
...
User/Makefile
浏览文件 @
e7e3a5cd
...
...
@@ -38,24 +38,28 @@ UDK_ARCH ?= X64
#
CFLAGS
:=
-c
-fshort-wchar
-Wall
-Wextra
-D
EFIUSER
ifeq
($(STATIC),1)
LDFLAGS
+=
-static
endif
ifeq
($(WERROR),1)
CFLAGS
+=
-Werror
CFLAGS
+=
-Werror
endif
ifeq
($(shell echo 'int a;' | "${CC}" -Wno-unused-parameter -x c -c - -o /dev/null 2>&1),)
CFLAGS
+=
-Wno-unused-parameter
CFLAGS
+=
-Wno-unused-parameter
endif
ifeq
($(shell echo 'int a;' | "${CC}" -Wno-implicit-fallthrough -x c -c - -o /dev/null 2>&1),)
CFLAGS
+=
-Wno-implicit-fallthrough
CFLAGS
+=
-Wno-implicit-fallthrough
endif
ifeq
($(shell echo 'int a;' | "${CC}" -Wno-strict-aliasing -x c -c - -o /dev/null 2>&1),)
CFLAGS
+=
-Wno-strict-aliasing
CFLAGS
+=
-Wno-strict-aliasing
endif
ifeq
($(shell echo 'int a;' | "${CC}" -Wno-address -x c -c - -o /dev/null 2>&1),)
CFLAGS
+=
-Wno-address
CFLAGS
+=
-Wno-address
endif
ifeq
($(DIST),Darwin)
...
...
@@ -66,8 +70,8 @@ ifeq ($(DIST),Darwin)
endif
ifeq
($(DIST),Windows)
SUFFIX
:=
.exe
CFLAGS
+=
-D_ISOC99_SOURCE
=
1
SUFFIX
:=
.exe
CFLAGS
+=
-D_ISOC99_SOURCE
=
1
endif
ifeq
($(SANITIZE),1)
...
...
build_oc.tool
浏览文件 @
e7e3a5cd
...
...
@@ -50,6 +50,11 @@ buildutil() {
UDK_ARCH
=
Ia32
CC
=
i686-w64-mingw32-gcc
STRIP
=
i686-w64-mingw32-strip
DIST
=
Windows make clean
||
exit
1
UDK_ARCH
=
Ia32
CC
=
i686-w64-mingw32-gcc
STRIP
=
i686-w64-mingw32-strip
DIST
=
Windows make
-j
"
$cores
"
||
exit
1
fi
if
[
"
$(
which x86_64-linux-musl-gcc-8
)
"
!=
""
]
;
then
echo
"Building
${
util
}
for Linux..."
STATIC
=
1
SUFFIX
=
.linux
UDK_ARCH
=
X64
CC
=
x86_64-linux-musl-gcc-8
STRIP
=
x86_64-linux-musl-strip-8
DIST
=
Linux make clean
||
exit
1
STATIC
=
1
SUFFIX
=
.linux
UDK_ARCH
=
X64
CC
=
x86_64-linux-musl-gcc-8
STRIP
=
x86_64-linux-musl-strip-8
DIST
=
Linux make
-j
"
$cores
"
||
exit
1
fi
cd
-
||
exit
1
done
popd
||
exit
...
...
@@ -233,9 +238,11 @@ package() {
mkdir
-p
"
${
dest
}
"
||
exit
1
bin
=
"
${
selfdir
}
/Utilities/
${
util
}
/
${
util
}
"
cp
"
${
bin
}
"
"
${
dest
}
"
||
exit
1
binEXE
=
"
${
bin
}
.exe"
if
[
-f
"
${
binEXE
}
"
]
;
then
cp
"
${
binEXE
}
"
"
${
dest
}
"
||
exit
1
if
[
-f
"
${
bin
}
.exe"
]
;
then
cp
"
${
bin
}
.exe"
"
${
dest
}
"
||
exit
1
fi
if
[
-f
"
${
bin
}
.linux"
]
;
then
cp
"
${
bin
}
.linux"
"
${
dest
}
"
||
exit
1
fi
done
# additional docs for macserial.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录