kumquat-buildroot/package/acpica/acpica.mk

42 lines
1.0 KiB
Makefile
Raw Normal View History

################################################################################
#
# acpica
#
################################################################################
package/acpica: bump to version 20230628 For change log since 20220331, see: - https://github.com/acpica/acpica/blob/R06_28_23/documents/changes.txt This commit also drop the patch removing -Werror in CFLAGS, as an alternative is now available upstream, merged in [1]. This commit is included in release 20221020. The build commands are updated accordingly to set the new NOWERROR=TRUE option to achieve the same behavior. With the patch removal, .checkpackageignore is also updated accordingly. Upstream commit [2] also introduced a use of wcslen() and <wchar.h>. This commit was first included in tag R10_20_22 (version 20221020). Therefore, this new version need wchar. The new depedency is added. The _SOURCE file is also changed from acpica-unix2 to acpica-unix, as the current acpica download page at [3] shows: """ Note: The unix2 source package is deprecated since the dual license is now included in all source modules (along with the Intel license). This package will be removed from future ACPICA releases. """ The _SITE url is also updated to the new download link, since the acpica website now redirects to Intel: curl -si https://www.acpica.org | grep Location: Location: https://www.intel.com/content/www/us/en/developer/topic-technology/open/acpica/overview.html The license file hash is also updated, due to the copyright year update. It is also worth mentioning that the files in the new archive have three alternative licenses in their headers: Intel, BSD-3-Clause and GPL-2.0. Finally, since a SHA1 hash is published on the download page, it is added to the hash file. This version bump is motivated by the introduction of RISC-V related definitions. [1] https://github.com/acpica/acpica/commit/3fd0f940408fc01a2c52c5be5f2beb0218a3d907 [2] https://github.com/acpica/acpica/commit/cd6a30897593f6052abf0b9a791671dcf07b9596 [3] https://www.intel.com/content/www/us/en/developer/topic-technology/open/acpica/download.html Cc: Erico Nunes <nunes.erico@gmail.com> Signed-off-by: Julien Olivain <ju.o@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2023-07-25 23:36:09 +02:00
ACPICA_VERSION = 20230628
ACPICA_SOURCE = acpica-unix-$(ACPICA_VERSION).tar.gz
ACPICA_SITE = https://downloadmirror.intel.com/783534
ACPICA_LICENSE = BSD-3-Clause or GPL-2.0
ACPICA_LICENSE_FILES = source/include/acpi.h
ACPICA_DEPENDENCIES = host-bison host-flex
HOST_ACPICA_DEPENDENCIES = host-bison host-flex
define ACPICA_BUILD_CMDS
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
ACPI_HOST=_LINUX CC="$(TARGET_CC)" \
package/acpica: bump to version 20230628 For change log since 20220331, see: - https://github.com/acpica/acpica/blob/R06_28_23/documents/changes.txt This commit also drop the patch removing -Werror in CFLAGS, as an alternative is now available upstream, merged in [1]. This commit is included in release 20221020. The build commands are updated accordingly to set the new NOWERROR=TRUE option to achieve the same behavior. With the patch removal, .checkpackageignore is also updated accordingly. Upstream commit [2] also introduced a use of wcslen() and <wchar.h>. This commit was first included in tag R10_20_22 (version 20221020). Therefore, this new version need wchar. The new depedency is added. The _SOURCE file is also changed from acpica-unix2 to acpica-unix, as the current acpica download page at [3] shows: """ Note: The unix2 source package is deprecated since the dual license is now included in all source modules (along with the Intel license). This package will be removed from future ACPICA releases. """ The _SITE url is also updated to the new download link, since the acpica website now redirects to Intel: curl -si https://www.acpica.org | grep Location: Location: https://www.intel.com/content/www/us/en/developer/topic-technology/open/acpica/overview.html The license file hash is also updated, due to the copyright year update. It is also worth mentioning that the files in the new archive have three alternative licenses in their headers: Intel, BSD-3-Clause and GPL-2.0. Finally, since a SHA1 hash is published on the download page, it is added to the hash file. This version bump is motivated by the introduction of RISC-V related definitions. [1] https://github.com/acpica/acpica/commit/3fd0f940408fc01a2c52c5be5f2beb0218a3d907 [2] https://github.com/acpica/acpica/commit/cd6a30897593f6052abf0b9a791671dcf07b9596 [3] https://www.intel.com/content/www/us/en/developer/topic-technology/open/acpica/download.html Cc: Erico Nunes <nunes.erico@gmail.com> Signed-off-by: Julien Olivain <ju.o@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2023-07-25 23:36:09 +02:00
NOWERROR=TRUE \
all
endef
define HOST_ACPICA_BUILD_CMDS
$(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
package/acpica: bump to version 20230628 For change log since 20220331, see: - https://github.com/acpica/acpica/blob/R06_28_23/documents/changes.txt This commit also drop the patch removing -Werror in CFLAGS, as an alternative is now available upstream, merged in [1]. This commit is included in release 20221020. The build commands are updated accordingly to set the new NOWERROR=TRUE option to achieve the same behavior. With the patch removal, .checkpackageignore is also updated accordingly. Upstream commit [2] also introduced a use of wcslen() and <wchar.h>. This commit was first included in tag R10_20_22 (version 20221020). Therefore, this new version need wchar. The new depedency is added. The _SOURCE file is also changed from acpica-unix2 to acpica-unix, as the current acpica download page at [3] shows: """ Note: The unix2 source package is deprecated since the dual license is now included in all source modules (along with the Intel license). This package will be removed from future ACPICA releases. """ The _SITE url is also updated to the new download link, since the acpica website now redirects to Intel: curl -si https://www.acpica.org | grep Location: Location: https://www.intel.com/content/www/us/en/developer/topic-technology/open/acpica/overview.html The license file hash is also updated, due to the copyright year update. It is also worth mentioning that the files in the new archive have three alternative licenses in their headers: Intel, BSD-3-Clause and GPL-2.0. Finally, since a SHA1 hash is published on the download page, it is added to the hash file. This version bump is motivated by the introduction of RISC-V related definitions. [1] https://github.com/acpica/acpica/commit/3fd0f940408fc01a2c52c5be5f2beb0218a3d907 [2] https://github.com/acpica/acpica/commit/cd6a30897593f6052abf0b9a791671dcf07b9596 [3] https://www.intel.com/content/www/us/en/developer/topic-technology/open/acpica/download.html Cc: Erico Nunes <nunes.erico@gmail.com> Signed-off-by: Julien Olivain <ju.o@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2023-07-25 23:36:09 +02:00
NOWERROR=TRUE \
all
endef
define ACPICA_INSTALL_TARGET_CMDS
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
DESTDIR="$(TARGET_DIR)" \
INSTALLFLAGS=-m755 install
endef
define HOST_ACPICA_INSTALL_CMDS
$(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
PREFIX="$(HOST_DIR)" \
INSTALLFLAGS=-m755 install
endef
$(eval $(generic-package))
$(eval $(host-generic-package))