Commit f5bb6ede authored by Casey Strouse's avatar Casey Strouse Committed by GitHub

Merge pull request #3989 from uberhacker/add-CREW_OPTIONS-constant

Add CREW_OPTIONS constant
parents aa14445b f538550f
...@@ -268,6 +268,7 @@ def const (var) ...@@ -268,6 +268,7 @@ def const (var)
'CREW_NOT_COMPRESS', 'CREW_NOT_COMPRESS',
'CREW_NOT_STRIP', 'CREW_NOT_STRIP',
'CREW_NPROC', 'CREW_NPROC',
'CREW_OPTIONS',
'CREW_PREFIX', 'CREW_PREFIX',
'CREW_VERSION', 'CREW_VERSION',
'HOME', 'HOME',
......
# Defines common constants used in different parts of crew # Defines common constants used in different parts of crew
CREW_VERSION = '1.3.2' CREW_VERSION = '1.3.4'
ARCH = `uname -m`.strip ARCH = `uname -m`.strip
ARCH_LIB = if ARCH == 'x86_64' then 'lib64' else 'lib' end ARCH_LIB = if ARCH == 'x86_64' then 'lib64' else 'lib' end
...@@ -46,4 +46,12 @@ USER = `whoami`.chomp ...@@ -46,4 +46,12 @@ USER = `whoami`.chomp
CHROMEOS_RELEASE = `grep CHROMEOS_RELEASE_CHROME_MILESTONE= /etc/lsb-release | cut -d'=' -f2`.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}"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment