File tree Expand file tree Collapse file tree
src/hal/user_comps/xhc-whb04b-6 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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))))
34ifdef HAVE_LIBUSB10
45
56XHC_WHB04B6_LIB_DEPENDENCIES = ../lib/liblinuxcnchal.so.0 ../lib/liblinuxcncini.so.0
@@ -26,5 +27,5 @@ TARGETS += ../bin/xhc-whb04b-6
2627endif # HAVE_LIBUSB10
2728
2829else
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
You can’t perform that action at this time.
0 commit comments