RPi: Fix GPIO Layout detection (#895) (#906)

This commit is contained in:
Marcelo Aquino
2017-08-12 08:58:02 -03:00
committed by GitHub
parent d17b9dd6f1
commit d291a3661b
3 changed files with 80 additions and 21 deletions
Vendored
+1 -1
View File
@@ -493,7 +493,7 @@ if [ -z "${CPUFLAGS}" ]; then
fi
if [[ $SOC == "BCM2835" || $SOC == "BCM2836" || $SOC == "BCM2837" ]]; then
CPPFLAGS="-DLINUX_ARCH_RASPBERRYPI -DRPI_TYPE=\\\"$TYPE\\\" $CPPFLAGS"
CPPFLAGS="-DLINUX_ARCH_RASPBERRYPI $CPPFLAGS"
else
echo "[SECTION] Checking GPIO Sysfs."
if [[ $(eval 'ls /sys/class/gpio/export 2>/dev/null') ]]; then