We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 340a025 commit c0ee9bbCopy full SHA for c0ee9bb
arch/microblaze/Makefile
@@ -6,9 +6,9 @@ UTS_SYSNAME = -DUTS_SYSNAME=\"Linux\"
6
# What CPU version are we building for, and crack it open
7
# as major.minor.rev
8
CPU_VER := $(CONFIG_XILINX_MICROBLAZE0_HW_VER)
9
-CPU_MAJOR := $(shell echo $(CPU_VER) | cut -d '.' -f 1)
10
-CPU_MINOR := $(shell echo $(CPU_VER) | cut -d '.' -f 2)
11
-CPU_REV := $(shell echo $(CPU_VER) | cut -d '.' -f 3)
+CPU_MAJOR := $(word 1, $(subst ., , $(CPU_VER)))
+CPU_MINOR := $(word 2, $(subst ., , $(CPU_VER)))
+CPU_REV := $(word 3, $(subst ., , $(CPU_VER)))
12
13
export CPU_VER CPU_MAJOR CPU_MINOR CPU_REV
14
0 commit comments