Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Annlix
ShellCheck
提交
4f5dc709
S
ShellCheck
项目概览
Annlix
/
ShellCheck
与 Fork 源项目一致
Fork自
镜像 / koalaman / ShellCheck
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
ShellCheck
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
4f5dc709
编写于
2月 23, 2021
作者:
V
Vidar Holen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ppc64le build producing 50MB executables
上级
670c1de0
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
46 addition
and
0 deletion
+46
-0
build/linux.ppc64le/Dockerfile
build/linux.ppc64le/Dockerfile
+30
-0
build/linux.ppc64le/build
build/linux.ppc64le/build
+15
-0
build/linux.ppc64le/tag
build/linux.ppc64le/tag
+1
-0
未找到文件。
build/linux.ppc64le/Dockerfile
0 → 100644
浏览文件 @
4f5dc709
FROM
ubuntu:20.04
ENV
TARGET powerpc64le-linux-gnu
ENV
TARGETNAME linux.ppc64le
# Build dependencies
USER
root
ENV
DEBIAN_FRONTEND noninteractive
RUN
apt-get update
&&
apt-get
install
-y
ghc automake autoconf build-essential llvm curl qemu-user-static gcc-
$TARGET
# Build GHC
WORKDIR
/ghc
RUN
curl
-L
"https://downloads.haskell.org/~ghc/8.10.4/ghc-8.10.4-src.tar.xz"
|
tar
xJ
--strip-components
=
1
RUN
./boot
&&
./configure
--host
x86_64-linux-gnu
--build
x86_64-linux-gnu
--target
"
$TARGET
"
--enable-unregisterised
RUN
cp
mk/flavours/quick-cross.mk mk/build.mk
&&
make
-j
"
$(
nproc
)
"
RUN
make
install
RUN
curl
-L
"https://downloads.haskell.org/~cabal/cabal-install-3.2.0.0/cabal-install-3.2.0.0-x86_64-unknown-linux.tar.xz"
|
tar
xJv
-C
/usr/local/bin
# Due to an apparent cabal bug, we specify our options directly to cabal
# It won't reuse caches if ghc-options are specified in ~/.cabal/config
ENV
CABALOPTS "--ghc-options;-optl-Wl,-fuse-ld=bfd -split-sections -optc-Os -optc-Wl,--gc-sections;--with-ghc=$TARGET-ghc;--with-hc-pkg=$TARGET-ghc-pkg"
# Prebuild the dependencies
#RUN cabal update && IFS=';' && cabal install $CABALOPTS --lib Diff-0.4.0 base-compat-0.11.2 base-orphans-0.8.4 dlist-1.0 hashable-1.3.0.0 indexed-traversable-0.1.1 integer-logarithms-1.0.3.1 primitive-0.7.1.0 regex-base-0.94.0.0 splitmix-0.1.0.3 tagged-0.8.6.1 th-abstraction-0.4.2.0 transformers-compat-0.6.6 base-compat-batteries-0.11.2 time-compat-1.9.5 unordered-containers-0.2.13.0 data-fix-0.3.1 vector-0.12.2.0 scientific-0.3.6.2 regex-tdfa-1.3.1.0 random-1.2.0 distributive-0.6.2.1 attoparsec-0.13.2.5 uuid-types-1.0.3 comonad-5.0.8 bifunctors-5.5.10 assoc-1.0.2 these-1.1.1.1 strict-0.4.0.1 aeson-1.5.5.1
# Copy the build script
COPY
build /usr/bin
WORKDIR
/scratch
ENTRYPOINT
["/usr/bin/build"]
build/linux.ppc64le/build
0 → 100755
浏览文件 @
4f5dc709
#!/bin/sh
set
-
xe
{
tar
xzv
--
strip
-
components
=
1
.
/
striptests
mkdir
"$TARGETNAME"
cabal
update
(
IFS
=
';'
;
cabal
build
$
CABALOPTS
--
enable
-
executable
-
static
)
find
.
-
name
shellcheck
-
type
f
-
exec
mv
{}
"$TARGETNAME/"
\
;
ls
-
l
"$TARGETNAME"
"$TARGET-strip"
-
s
"$TARGETNAME/shellcheck"
ls
-
l
"$TARGETNAME"
qemu
-
ppc64le
-
static
"$TARGETNAME/shellcheck"
--
version
}
>&
2
tar
czv
"$TARGETNAME"
build/linux.ppc64le/tag
0 → 100644
浏览文件 @
4f5dc709
koalaman/scbuilder-linux-ppc64le
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录