From 3bd7269873d73d9600601a8b7b05a7659283f1ff Mon Sep 17 00:00:00 2001 From: ovcretzu <38153797+ovcretzu@users.noreply.github.com> Date: Sat, 7 Apr 2018 18:01:40 +0900 Subject: [PATCH] Add the PPC platform Tested on a Mac Mini G4 running Ubuntu 16.04.4 LTS, kernel version 4.4.0-119-powerpc-smp --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Makefile b/Makefile index 71d0660..fc7fd5e 100644 --- a/Makefile +++ b/Makefile @@ -84,6 +84,7 @@ CONFIG_PLATFORM_ARM_SUNxI = n CONFIG_PLATFORM_ARM_SUN6I = n CONFIG_PLATFORM_ACTIONS_ATM702X = n CONFIG_PLATFORM_ACTIONS_ATV5201 = n +CONFIG_PLATFORM_PPC = n CONFIG_DRVEXT_MODULE = n @@ -971,6 +972,17 @@ KVER := $(KERNEL_VER) KSRC:= $(CFGDIR)/../../kernel/linux-$(KERNEL_VER) endif +ifeq ($(CONFIG_PLATFORM_PPC), y) +EXTRA_CFLAGS += -DCONFIG_BIG_ENDIAN +SUBARCH := $(shell uname -m | sed -e s/ppc/powerpc/) +ARCH ?= $(SUBARCH) +CROSS_COMPILE ?= +KVER ?= $(shell uname -r) +KSRC := /lib/modules/$(KVER)/build +MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/ +INSTALL_PREFIX := +endif + ifeq ($(CONFIG_MULTIDRV), y)