Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
5660043c
Commit
5660043c
authored
Jun 20, 2017
by
Jian Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support to build hyperkube image on ppc64le
parent
46fe7f06
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
Makefile
cluster/images/hyperkube/Makefile
+6
-3
No files found.
cluster/images/hyperkube/Makefile
View file @
5660043c
...
@@ -23,6 +23,8 @@ TEMP_DIR:=$(shell mktemp -d -t hyperkubeXXXXXX)
...
@@ -23,6 +23,8 @@ TEMP_DIR:=$(shell mktemp -d -t hyperkubeXXXXXX)
CNI_RELEASE
=
0799f5732f2a11b329d9e3d51b9c8f2e3759f2ff
CNI_RELEASE
=
0799f5732f2a11b329d9e3d51b9c8f2e3759f2ff
CACHEBUST
?=
1
CACHEBUST
?=
1
QEMUVERSION
=
v2.7.0
QEMUVERSION
=
v2.7.0
HYPERKUBE_BIN
?=
_output/dockerized/bin/linux/
${
ARCH
}
/hyperkube
HOSTARCH
?=
amd64
UNAME_S
:=
$(
shell
uname
-s
)
UNAME_S
:=
$(
shell
uname
-s
)
ifeq
($(UNAME_S),Darwin)
ifeq
($(UNAME_S),Darwin)
...
@@ -62,7 +64,8 @@ endif
...
@@ -62,7 +64,8 @@ endif
cp
-r
./*
${TEMP_DIR}
cp
-r
./*
${TEMP_DIR}
mkdir
-p
${TEMP_DIR}/cni-bin
mkdir
-p
${TEMP_DIR}/cni-bin
cp
../../../_output/dockerized/bin/linux/${ARCH}/hyperkube
${TEMP_DIR}
cp
../../../${HYPERKUBE_BIN}
${TEMP_DIR}
chmod
a+rx
${TEMP_DIR}/hyperkube
chmod
a+rx
${TEMP_DIR}/hyperkube
cd
${TEMP_DIR}
&&
sed
-i.back
"s|ARCH|${QEMUARCH}|g"
Dockerfile
cd
${TEMP_DIR}
&&
sed
-i.back
"s|ARCH|${QEMUARCH}|g"
Dockerfile
...
@@ -71,8 +74,8 @@ ifeq ($(CACHEBUST),1)
...
@@ -71,8 +74,8 @@ ifeq ($(CACHEBUST),1)
cd
${TEMP_DIR}
&&
sed
-i.back
"s|CACHEBUST|$(shell uuidgen)|g"
Dockerfile
cd
${TEMP_DIR}
&&
sed
-i.back
"s|CACHEBUST|$(shell uuidgen)|g"
Dockerfile
endif
endif
ifeq
($(ARCH),
amd64
)
ifeq
($(ARCH),
$(HOSTARCH)
)
# When building "normally"
for amd64, remove the whole line, it has no part in the amd64
image
# When building "normally"
, remove the whole line, it has no part in the
image
cd
${TEMP_DIR}
&&
${SED_CMD}
"/CROSS_BUILD_/d"
Dockerfile
cd
${TEMP_DIR}
&&
${SED_CMD}
"/CROSS_BUILD_/d"
Dockerfile
else
else
cd
${TEMP_DIR}
&&
${SED_CMD}
"s/CROSS_BUILD_//g"
Dockerfile
cd
${TEMP_DIR}
&&
${SED_CMD}
"s/CROSS_BUILD_//g"
Dockerfile
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment