Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
btwise
OpenCorePKG_MOD
提交
a6b6902f
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,发现更多精彩内容 >>
提交
a6b6902f
编写于
7月 25, 2020
作者:
V
vit9696
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Utilities: Drop OpenDuetPkg binary and rebuild it with OC
上级
870017d0
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
45 addition
and
13 deletion
+45
-13
.travis.yml
.travis.yml
+4
-4
Changelog.md
Changelog.md
+1
-0
Utilities/LegacyBoot/BootInstall.command
Utilities/LegacyBoot/BootInstall.command
+10
-3
Utilities/LegacyBoot/QemuBuild.command
Utilities/LegacyBoot/QemuBuild.command
+9
-3
Utilities/LegacyBoot/boot
Utilities/LegacyBoot/boot
+0
-0
build_oc.tool
build_oc.tool
+21
-3
未找到文件。
.travis.yml
浏览文件 @
a6b6902f
...
...
@@ -17,8 +17,8 @@ matrix:
script
:
-
HOMEBREW_NO_INSTALL_CLEANUP=1 HOMEBREW_NO_AUTO_UPDATE=1 brew install openssl mingw-w64
-
"
./build_oc.tool"
-
"
./build_duet.tool"
-
"
./build_oc.tool"
deploy
:
provider
:
releases
...
...
@@ -51,8 +51,8 @@ matrix:
-
if [ "$sum" != "$expsum" ]; then echo "Invalid checksum $sum" ; exit 1 ; fi
-
tar -xf "${file}${suf}" || exit
1
-
export PATH="$(pwd)/${file}/bin:$PATH"
-
"
./build_oc.tool"
-
"
./build_duet.tool"
-
"
./build_oc.tool"
-
os
:
linux
name
:
"
Build
Linux
CLANG38"
...
...
@@ -70,8 +70,8 @@ matrix:
-
sudo apt-get remove -y llvm-3.8 libllvm3.8
# Move LLVM 3.8 out of the way.
-
export PATH="/usr/lib/llvm-8/bin:$PATH"
# Default compiler (7.0 or 3.8) has no LTO plugin.
-
export TOOLCHAINS=CLANG38
-
"
./build_oc.tool"
-
"
./build_duet.tool"
-
"
./build_oc.tool"
# Currently this is too ugly, but maybe we can use that in the future.
-
sudo apt-get install -y doxygen texlive texlive-latex-extra
-
abort() { tail -200 log.txt ; exit 1 ; }
...
...
@@ -86,8 +86,8 @@ matrix:
-
HAS_OPENSSL_BUILD=0
-
choco install python
-
choco install microsoft-build-tools visualcpp-build-tools make nasm zip
-
"
./build_oc.tool"
-
"
./build_duet.tool"
-
"
./build_oc.tool"
-
os
:
osx
name
:
"
Analyze
Scripts"
...
...
Changelog.md
浏览文件 @
a6b6902f
...
...
@@ -32,6 +32,7 @@ OpenCore Changelog
-
Updated builtin firmware versions for SMBIOS and the rest
-
Fixed OSXSAVE reporting when emulating CPUID on newer CPUs
-
Added
`SerialInit`
option to perform serial initialisation separately
-
Fixed OpenDuetPkg booting on Intel G33 with SATA controller in RAID mode
#### v0.5.9
-
Added full HiDPI support in OpenCanopy
...
...
Utilities/LegacyBoot/BootInstall.command
浏览文件 @
a6b6902f
...
...
@@ -2,7 +2,14 @@
# Install booter on physical disk.
cd
"
$(
dirname
"
$0
"
)
"
||
exit
cd
"
$(
dirname
"
$0
"
)
"
||
exit
1
if
[
!
-f
boot
]
||
[
!
-f
boot0
]
||
[
!
-f
boot1f32
]
;
then
echo
"Boot files are missing from this package!"
echo
"You probably forgot to build DuetPkg first."
exit
1
fi
diskutil list
echo
"Enter disk number to install to:"
read
-r
N
...
...
@@ -10,7 +17,7 @@ read -r N
if
[[
!
$(
diskutil info disk
"
${
N
}
"
|
sed
-n
's/.*Device Node: *//p'
)
]]
then
echo
Disk
"
$N
"
not found
exit
exit
1
fi
FS
=
$(
diskutil info disk
"
${
N
}
"
s1 |
sed
-n
's/.*File System Personality: *//p'
)
...
...
@@ -19,7 +26,7 @@ echo "$FS"
if
[
"
$FS
"
!=
"MS-DOS FAT32"
]
then
echo
"No FAT32 partition to install"
exit
exit
1
fi
# Write MBR
...
...
Utilities/LegacyBoot/QemuBuild.command
浏览文件 @
a6b6902f
...
...
@@ -4,7 +4,13 @@
# qemu-system-x86_64 -drive file=$QEMU_IMAGE/OpenCore.RO.raw -serial stdio \
# -usb -device usb-kbd -device usb-mouse -s -m 8192
cd
"
$(
dirname
"
$0
"
)
"
||
exit
cd
"
$(
dirname
"
$0
"
)
"
||
exit
1
if
[
!
-f
boot
]
||
[
!
-f
boot0
]
||
[
!
-f
boot1f32
]
;
then
echo
"Boot files are missing from this package!"
echo
"You probably forgot to build DuetPkg first."
exit
1
fi
if
[
"
$(
which qemu-img
)
"
=
""
]
;
then
echo
"QEMU installation missing"
...
...
@@ -32,7 +38,7 @@ echo "Will be installed to Disk ${N}"
if
[[
!
$(
diskutil info disk
"
${
N
}
"
|
sed
-n
's/.*Device Node: *//p'
)
]]
then
echo
Disk
"
$N
"
not found
exit
exit
1
fi
FS
=
$(
diskutil info disk
"
${
N
}
"
s1 |
sed
-n
's/.*File System Personality: *//p'
)
...
...
@@ -41,7 +47,7 @@ echo "$FS"
if
[
"
$FS
"
!=
"MS-DOS FAT32"
]
then
echo
"No FAT32 partition to install"
exit
exit
1
fi
# Write MBR
...
...
Utilities/LegacyBoot/boot
已删除
100644 → 0
浏览文件 @
870017d0
文件已删除
build_oc.tool
浏览文件 @
a6b6902f
...
...
@@ -22,11 +22,14 @@ buildutil() {
UTILS+
=(
"RsaTool"
)
fi
local
cores
cores
=
$(
getconf _NPROCESSORS_ONLN
)
pushd
"
${
selfdir
}
/Utilities"
||
exit
1
for
util
in
"
${
UTILS
[@]
}
"
;
do
cd
"
$util
"
||
exit
1
echo
"Building
${
util
}
..."
make
||
exit
1
make
-j
$cores
||
exit
1
#
# FIXME: Do not build RsaTool for Win32 without OpenSSL.
#
...
...
@@ -37,7 +40,7 @@ buildutil() {
if
[
"
$(
which i686-w64-mingw32-gcc
)
"
!=
""
]
;
then
echo
"Building
${
util
}
for Windows..."
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
||
exit
1
UDK_ARCH
=
Ia32
CC
=
i686-w64-mingw32-gcc
STRIP
=
i686-w64-mingw32-strip
DIST
=
Windows make
-j
$cores
||
exit
1
fi
cd
-
||
exit
1
done
...
...
@@ -46,7 +49,7 @@ buildutil() {
package
()
{
if
[
!
-d
"
$1
"
]
;
then
echo
"Missing package directory"
echo
"Missing package directory
$1
"
exit
1
fi
...
...
@@ -154,6 +157,21 @@ package() {
cp
-r
"
${
selfdir
}
/Utilities/
${
utilScpt
}
"
tmp/Utilities/
||
exit
1
done
# Copy OpenDuetPkg booter.
local arch
local
tgt
local
booter
arch
=
"
$(
basename
$(
pwd
))
"
tgt
=
"
$(
basename
$(
dirname
$(
pwd
)))
"
booter
=
"
$(
pwd
)
/../../../OpenDuetPkg/
${
tgt
}
/
${
arch
}
/boot"
if
[
-f
"
${
booter
}
"
]
;
then
echo
"Copying OpenDuetPkg boot file from
${
booter
}
..."
cp
"
${
booter
}
"
tmp/Utilities/LegacyBoot/boot
||
exit
1
else
echo
"Failed to find OpenDuetPkg at
${
booter
}
!"
fi
buildutil
||
exit
1
utils
=(
"macserial"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录