Browse Source

add OnePlus

pull/8/head
leeboby 5 years ago
parent
commit
b96d78e892
  1. 2
      build
  2. 12
      gpio/Makefile
  3. 12
      wiringPi/Makefile

2
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

12
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

12
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

Loading…
Cancel
Save