Skip to content

Commit 6d64efd

Browse files
authored
correcting submakefile for 2.8
1 parent 0c86def commit 6d64efd

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/hal/user_comps/xhc-whb04b-6/Submakefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
GCC_GTEQ_470 := $(shell $(CC) --version | head -n1 | grep gcc >/dev/null && (expr `($(CC) -dumpfullversion 2>/dev/null || $(CC) -dumpversion) | awk -F '.' '{print $$1*10000+$$2*100+$$3}'` \>= 40700 || true) || echo 1)
2-
ifeq "$(GCC_GTEQ_470)" "1"
1+
GCC_VERSION := $(shell gcc -dumpversion)
2+
MIN_VERSION := 4.7
3+
ifeq ($(MIN_VERSION),$(firstword $(sort $(GCC_VERSION) $(MIN_VERSION))))
34
ifdef HAVE_LIBUSB10
45

56
XHC_WHB04B6_LIB_DEPENDENCIES = ../lib/liblinuxcnchal.so.0 ../lib/liblinuxcncini.so.0
@@ -26,5 +27,5 @@ TARGETS += ../bin/xhc-whb04b-6
2627
endif # HAVE_LIBUSB10
2728

2829
else
29-
$(info Compiler version: "$(shell $(CC) --version | head -n1)" is too old: skipping hal/user_comps/xhc-whb04b-6)
30-
endif # GCC VERSION CHECK
30+
$(info gcc version $(GCC_VERSION) too old: skipping hal/user_comps/xhc-whb04b-6)
31+
endif # GCC VERSION CHECK

0 commit comments

Comments
 (0)