-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src/defs.mak: Improve host system autodetection
Allows RHEL version to be detected and HARCH_DEFAULT set accordingly This removes the need for setting HARCH explicitly on the command line or in config.mak
- Loading branch information
Showing
3 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# //@C Copyright Notice | ||
# //@C ================ | ||
# //@C This file is part of CPSW. It is subject to the license terms in the LICENSE.txt | ||
# //@C file found in the top-level directory of this distribution and at | ||
# //@C https://confluence.slac.stanford.edu/display/ppareg/LICENSE.html. | ||
# //@C | ||
# //@C No part of CPSW, including this file, may be copied, modified, propagated, or | ||
# //@C distributed except according to the terms contained in the LICENSE.txt file. | ||
|
||
#=================================================# | ||
# Simple utility script to detect host arch | ||
#=================================================# | ||
|
||
HOST_ARCH:=$(shell uname -r | grep -Eo "el[0-9][0-9]?") | ||
ifneq ($(HOST_ARCH),) | ||
HOST_ARCH:=rhel$(subst el,,$(HOST_ARCH))-$(shell uname -m) | ||
else | ||
HOST_ARCH:=linux-$(shell uname -m) | ||
endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters