Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
chromebrew
Commits
f5bb6ede
Commit
f5bb6ede
authored
Apr 08, 2020
by
Casey Strouse
Committed by
GitHub
Apr 08, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3989 from uberhacker/add-CREW_OPTIONS-constant
Add CREW_OPTIONS constant
parents
aa14445b
f538550f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
crew
crew
+1
-0
lib/const.rb
lib/const.rb
+10
-2
No files found.
crew
View file @
f5bb6ede
...
...
@@ -268,6 +268,7 @@ def const (var)
'CREW_NOT_COMPRESS'
,
'CREW_NOT_STRIP'
,
'CREW_NPROC'
,
'CREW_OPTIONS'
,
'CREW_PREFIX'
,
'CREW_VERSION'
,
'HOME'
,
...
...
lib/const.rb
View file @
f5bb6ede
# Defines common constants used in different parts of crew
CREW_VERSION
=
'1.3.
2
'
CREW_VERSION
=
'1.3.
4
'
ARCH
=
`uname -m`
.
strip
ARCH_LIB
=
if
ARCH
==
'x86_64'
then
'lib64'
else
'lib'
end
...
...
@@ -46,4 +46,12 @@ USER = `whoami`.chomp
CHROMEOS_RELEASE
=
`grep CHROMEOS_RELEASE_CHROME_MILESTONE= /etc/lsb-release | cut -d'=' -f2`
.
chomp
CREW_BUILD
=
`gcc -dumpmachine`
case
ARCH
when
'aarch64'
,
'armv7l'
CREW_BUILD
=
'armv7l-cros-linux-gnueabihf'
when
'i686'
CREW_BUILD
=
'i686-cros-linux-gnu'
when
'x86_64'
CREW_BUILD
=
'x86_64-cros-linux-gnu'
end
CREW_OPTIONS
=
"--prefix=
#{
CREW_PREFIX
}
--libdir=
#{
CREW_LIB_PREFIX
}
--mandir=
#{
CREW_PREFIX
}
/share/man --build=
#{
CREW_BUILD
}
--host=
#{
CREW_BUILD
}
--target=
#{
CREW_BUILD
}
"
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