0073b3631f
cpe:2.3🅰️newlib_project:newlib is a valid CPE identifier for this package: https://nvd.nist.gov/products/cpe/detail/822D4AAB-314B-4148-BE10-FCC59D1649BD Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
57 lines
1.9 KiB
Makefile
57 lines
1.9 KiB
Makefile
################################################################################
|
|
#
|
|
# newlib-bare-metal
|
|
#
|
|
################################################################################
|
|
|
|
NEWLIB_BARE_METAL_VERSION = 4.4.0.20231231
|
|
NEWLIB_BARE_METAL_SITE = ftp://sourceware.org/pub/newlib
|
|
NEWLIB_BARE_METAL_SOURCE = newlib-$(NEWLIB_BARE_METAL_VERSION).tar.gz
|
|
NEWLIB_BARE_METAL_DEPENDENCIES = host-gcc-bare-metal
|
|
NEWLIB_BARE_METAL_ADD_TOOLCHAIN_DEPENDENCY = NO
|
|
NEWLIB_BARE_METAL_LICENSE = GPL-2.0, GPL-3.0, LGPL-2.1, LGPL-3.0
|
|
NEWLIB_BARE_METAL_LICENSE_FILES = \
|
|
COPYING \
|
|
COPYING.LIB \
|
|
COPYING.LIBGLOSS \
|
|
COPYING.NEWLIB
|
|
NEWLIB_BARE_METAL_CPE_ID_VENDOR = newlib_project
|
|
NEWLIB_BARE_METAL_CPE_ID_PRODUCT = newlib
|
|
|
|
NEWLIB_BARE_METAL_INSTALL_STAGING = YES
|
|
NEWLIB_BARE_METAL_INSTALL_TARGET = NO
|
|
NEWLIB_BARE_METAL_MAKE_OPTS = MAKEINFO=true
|
|
|
|
define NEWLIB_BARE_METAL_CONFIGURE_CMDS
|
|
(cd $(@D) && \
|
|
PATH=$(BR_PATH) \
|
|
./configure \
|
|
--target=$(TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH_TUPLE) \
|
|
--prefix=/usr \
|
|
--enable-newlib-io-c99-formats \
|
|
--enable-newlib-io-long-long \
|
|
--enable-newlib-io-float \
|
|
--enable-newlib-io-long-double \
|
|
--disable-multilib \
|
|
)
|
|
endef
|
|
|
|
define NEWLIB_BARE_METAL_BUILD_CMDS
|
|
PATH=$(BR_PATH) $(MAKE1) $(NEWLIB_BARE_METAL_MAKE_OPTS) -C $(@D)
|
|
endef
|
|
|
|
define NEWLIB_BARE_METAL_INSTALL_STAGING_CMDS
|
|
PATH=$(BR_PATH) $(MAKE1) -C $(@D) $(NEWLIB_BARE_METAL_MAKE_OPTS) \
|
|
DESTDIR=$(TOOLCHAIN_BARE_METAL_BUILDROOT_SYSROOT) install
|
|
endef
|
|
|
|
define NEWLIB_BARE_METAL_FIXUP
|
|
mv $(TOOLCHAIN_BARE_METAL_BUILDROOT_SYSROOT)/usr/$(TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH_TUPLE)/include \
|
|
$(TOOLCHAIN_BARE_METAL_BUILDROOT_SYSROOT)/usr/include
|
|
mv $(TOOLCHAIN_BARE_METAL_BUILDROOT_SYSROOT)/usr/$(TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH_TUPLE)/lib \
|
|
$(TOOLCHAIN_BARE_METAL_BUILDROOT_SYSROOT)/usr/lib
|
|
endef
|
|
NEWLIB_BARE_METAL_POST_INSTALL_STAGING_HOOKS += NEWLIB_BARE_METAL_FIXUP
|
|
|
|
$(eval $(generic-package))
|