revert between 56095 -> 55830 in arch
[AROS.git] / arch / all-pc / acpica / mmakefile.src
blobfb9b6ad21241960ee8a200de1921186501190a35
1 # $Id$
3 include $(SRCDIR)/config/aros.cfg
5 DEBUG_ACPI=no
7 ACPICAPACKAGE      := acpica
8 ACPICAVERSION      := 20190215
9 ACPICAREPOSITORIES := \
10     https://acpica.org/sites/acpica/files https://sources.voidlinux.org/acpica-utils-$(ACPICAVERSION)
11 ACPICAARCHBASE     := $(ACPICAPACKAGE)-unix-$(ACPICAVERSION)
12 ACPICASRCDIR       := $(PORTSDIR)/acpica/$(ACPICAARCHBASE)
14 ACPICAPSPECS := $(ACPICAARCHBASE)-aros.diff:$(ACPICAARCHBASE):-f,-p1
16 ACPICA_INCLUDES     := $(ACPICASRCDIR)/source/include
18 %fetch mmake=acpica-fetch archive=$(ACPICAARCHBASE) \
19     destination=$(PORTSDIR)/acpica \
20     location=$(PORTSSOURCEDIR) \
21     archive_origins=$(ACPICAREPOSITORIES) \
22     suffixes="tar.gz" patches_specs=$(ACPICAPSPECS)
24 %create_patch mmake="acpica-create-patch" \
25     archive=$(ACPICAARCHBASE) \
26     srcdir=$(ACPICAARCHBASE) \
27     suffixes="tar.gz" \
28     destination=$(PORTSDIR)/acpica
30 #MM kernel-pc-acpica : acpica-fetch
31 #MM includes-copy :  acpica-fetch
33 ACPICA_BASESOURCES = \
34        $(call WILDCARD, $(ACPICASRCDIR)/source/components/executer/*.c) \
35        $(call WILDCARD, $(ACPICASRCDIR)/source/components/hardware/*.c) \
36        $(call WILDCARD, $(ACPICASRCDIR)/source/components/dispatcher/*.c) \
37        $(call WILDCARD, $(ACPICASRCDIR)/source/components/tables/*.c) \
38        $(call WILDCARD, $(ACPICASRCDIR)/source/components/events/*.c) \
39        $(call WILDCARD, $(ACPICASRCDIR)/source/components/parser/*.c) \
40        $(call WILDCARD, $(ACPICASRCDIR)/source/components/utilities/*.c) \
41        $(call WILDCARD, $(ACPICASRCDIR)/source/components/resources/*.c) \
42        $(call WILDCARD, $(ACPICASRCDIR)/source/components/namespace/*.c)
44 NOWARN_FLAGS := $(NOWARN_STRICT_ALIASING)
45 USER_CFLAGS := $(NOWARN_FLAGS) $(CFLAGS_NO_BUILTIN_VSNPRINTF)
46 USER_LDFLAGS := -static
48 # ACPICA debugging options
49 ifeq ($(DEBUG_ACPI),yes)
50 ACPICA_BASESOURCES +=  \
51        $(call WILDCARD, $(ACPICASRCDIR)/source/components/disassembler/*.c)
52 USER_CPPFLAGS += -DACPI_DEBUG_OUTPUT=1 -DACPI_DISASSEMBLER=1
53 # AROS Glue code debugging options
54 USER_CPPFLAGS += -DDEBUG=1
55 ACPICA_SOURCES = \
56        $(ACPICA_BASESOURCES:%.c=%)
57 else
58 ACPICA_SKIPFILES := \
59        $(ACPICASRCDIR)/source/components/resources/rsdump
60 ACPICA_SOURCES = \
61        $(filter-out $(ACPICA_SKIPFILES), $(ACPICA_BASESOURCES:%.c=%))
62 endif
64 FILES := acpios_aros \
65          $(ACPICA_SOURCES)
67 USER_INCLUDES += \
68          -I$(AROS_INCLUDES)/acpica \
69          -iquote $(ACPICA_INCLUDES) \
70          -iquote $(ACPICA_INCLUDES)/platform
72 %build_module mmake=kernel-pc-acpica \
73   modname=acpica modtype=library \
74   files="$(FILES)"
76 # Headers
78 INCLUDE_FILES := $(call WILDCARD, include/*.h)
80 %copy_includes path=libraries dir=include
82 INCLUDE_FILES = $(call WILDCARD, $(ACPICA_INCLUDES)/*.h)
84 %copy_includes path=acpica dir=$(ACPICA_INCLUDES)
86 # Programs
88 USER_CPPFLAGS     := -DADATE="\"$(shell date "+%d.%m.%Y")\""
90 FILES := ACPIInfo
92 #MM- workbench-c : workbench-c-$(AROS_TARGET_ARCH)-acpi
93 #MM- workbench-c-quick : workbench-c-$(AROS_TARGET_ARCH)-acpi-quick
95 %build_progs mmake=workbench-c-pc-acpi targetdir=$(AROS_C) \
96   files="$(FILES)" usestartup=no uselibs="acpica"
98 %common