diff --git a/build b/build index 6801363..918fbd6 100755 --- a/build +++ b/build @@ -49,7 +49,7 @@ select_boards() local choice local call=${1} - boards=("OrangePi_PC2" "OrangePi_A64" "OrangePi_ZERO" "OrangePi_H3" "OrangePi_LITE2" "OrangePi_H3_ZEROPLUS2" "OrangePi_3" "OrangePi_RK3399") + boards=("OrangePi_PC2" "OrangePi_A64" "OrangePi_ZERO" "OrangePi_H3" "OrangePi_LITE2" "OrangePi_H3_ZEROPLUS2" "OrangePi_3" "OrangePi_RK3399" "OrangePi_ONEPLUS") printf "All available boards:\n" for var in ${boards[@]} ; do diff --git a/gpio/Makefile b/gpio/Makefile index 3b0405f..7ed1745 100755 --- a/gpio/Makefile +++ b/gpio/Makefile @@ -47,9 +47,10 @@ ifeq ($(PLATFORM),) #PLATFORM = OrangePi_ZERO #PLATFORM = OrangePi_H3 #PLATFORM = OrangePi_LITE2 + PLATFORM = OrangePi_ONEPLUS #PLATFORM = OrangePi_H3_ZEROPLUS2 #PLATFORM = OrangePi_3 - PLATFORM = OrangePi_RK3399 + #PLATFORM = OrangePi_RK3399 endif ifeq ($(PLATFORM), OrangePi_2G-IOT) @@ -82,6 +83,11 @@ EXTRA_CFLAGS = -DCONFIG_ORANGEPI_LITE2 EXTRA_CFLAGS += -DCONFIG_ORANGEPI endif +ifeq ($(PLATFORM), OrangePi_ONEPLUS) +EXTRA_CFLAGS = -DCONFIG_ORANGEPI_LITE2 +EXTRA_CFLAGS += -DCONFIG_ORANGEPI +endif + ifeq ($(PLATFORM), OrangePi_3) EXTRA_CFLAGS = -DCONFIG_ORANGEPI_3 EXTRA_CFLAGS += -DCONFIG_ORANGEPI @@ -126,6 +132,10 @@ ifeq ($(PLATFORM), OrangePi_LITE2) SRC += OrangePi.c endif +ifeq ($(PLATFORM), OrangePi_ONEPLUS) + SRC += OrangePi.c +endif + ifeq ($(PLATFORM), OrangePi_3) SRC += OrangePi.c endif diff --git a/wiringPi/Makefile b/wiringPi/Makefile index edd7100..9969cb9 100755 --- a/wiringPi/Makefile +++ b/wiringPi/Makefile @@ -50,10 +50,11 @@ ifeq ($(PLATFORM),) #PLATFORM = OrangePi_A64 #PLATFORM = OrangePi_H3 #PLATFORM = OrangePi_LITE2 + PLATFORM = OrangePi_ONEPLUS #PLATFORM = OrangePi_ZERO #PLATFORM = OrangePi_H3_ZEROPLUS2 #PLATFORM = OrangePi_3 - PLATFORM = OrangePi_RK3399 + #PLATFORM = OrangePi_RK3399 endif ifeq ($(PLATFORM), OrangePi_2G-IOT) @@ -86,6 +87,11 @@ EXTRA_CFLAGS = -DCONFIG_ORANGEPI_LITE2 EXTRA_CFLAGS += -DCONFIG_ORANGEPI endif +ifeq ($(PLATFORM), OrangePi_ONEPLUS) +EXTRA_CFLAGS = -DCONFIG_ORANGEPI_LITE2 +EXTRA_CFLAGS += -DCONFIG_ORANGEPI +endif + ifeq ($(PLATFORM), OrangePi_3) EXTRA_CFLAGS = -DCONFIG_ORANGEPI_3 EXTRA_CFLAGS += -DCONFIG_ORANGEPI @@ -146,6 +152,10 @@ ifeq ($(PLATFORM), OrangePi_LITE2) SRC += OrangePi.c endif +ifeq ($(PLATFORM), OrangePi_ONEPLUS) +SRC += OrangePi.c +endif + ifeq ($(PLATFORM), OrangePi_3) SRC += OrangePi.c endif