Kernel/ACPI - Added initialisation call, unimplimented debugging
[tpg/acess2.git] / Externals / ACPICA / Makefile
index e4618e4..97d3414 100644 (file)
@@ -2,7 +2,6 @@
 
 include $(dir $(lastword $(MAKEFILE_LIST)))../../Makefile.cfg
 
-COMPONENTS = utilities tables
 BIN := ../bin-$(ARCH)/libacpica.a
 
 _VERS := $(patsubst acpica-unix-%.tar.gz,%,$(wildcard acpica-unix-*.tar.gz))
@@ -11,7 +10,9 @@ _LATEST := $(lastword $(_VERS))
 
 ifeq ($(ACPICAVER),)
  ifeq ($(_LATEST),)
-  $(error No ACPICA archive found (acpica-unix-%.tar.gz))
+  $(warning Unable to find an archive matching acpica-unix-%.tar.gz)
+  $(warning Go to https://www.acpica.org/downloads/ to get it)
+  $(error No ACPICA archive found)
  endif
  
  ifneq ($(_LATEST),$(_VERS))
@@ -31,7 +32,7 @@ CPPFLAGS      += -D ARCH=$(ARCH) -D ARCHDIR=$(ARCHDIR) -D PLATFORM=\"$(PLATFORM)\" -D
 CPPFLAGS       += -D KERNEL_VERSION=$(KERNEL_VERSION) -ffreestanding
 CFLAGS         += -Wall -fno-stack-protector -Wstrict-prototypes -std=gnu99 -g
 
-SRCS := $(foreach comp,$(COMPONENTS),$(wildcard $(COMPDIR)$(comp)/*.c))
+SRCS := $(wildcard $(COMPDIR)*/*.c)
 OBJS := $(SRCS:$(COMPDIR)%.c=obj-$(ARCH)/%.o)
 
 ACENV_H := $(ACPICAROOT)source/include/platform/acenv.h
@@ -44,10 +45,11 @@ extract: $(ACPICAROOT)
        @echo Re-run make to compile
 endif
 
-all: $(BIN)
+all: $(BIN) include
 
 clean:
-       $(RM) -r obj-$(ARCH)/
+       $(RM) -r obj-$(ARCH)/ include
+
 purge: clean
        $(RM) -r $(ACPICAROOT)
 
@@ -56,6 +58,9 @@ $(BIN): $(OBJS)
        @echo [AR] $@
        @ar rcu $@ $(OBJS)
 
+include:
+       ln -s $(ACPICAROOT)source/include
+
 $(ACPICAROOT): $(ACPICA_ARCHIVE)
        tar -xf $(ACPICA_ARCHIVE)
 

UCC git Repository :: git.ucc.asn.au