Files
buildroot/package/pico-sdk/pico-sdk.mk
Julien Olivain 6eaaccf758 package/pico{tool, -sdk}: install sdk files to $(HOST_DIR)/share
Commits [1] and [2] are installing host SDK files
"$(HOST_DIR)/usr/share".

check-package (see [3]) reports the error:

    package/pico-sdk/pico-sdk.mk:23: install files to $(HOST_DIR)/ instead of $(HOST_DIR)/usr/
    package/pico-sdk/pico-sdk.mk:24: install files to $(HOST_DIR)/ instead of $(HOST_DIR)/usr/
    package/picotool/picotool.mk:15: install files to $(HOST_DIR)/ instead of $(HOST_DIR)/usr/

This commit installs the host SDK files to "$(HOST_DIR)/share" to fix
this error.

Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/12970341499

[1] ceb800d3c6
[2] 926381d360
[3] 29a0dd4a30

Signed-off-by: Julien Olivain <ju.o@free.fr>
Signed-off-by: Romain Naour <romain.naour@smile.fr>
2026-02-03 23:09:54 +01:00

29 lines
818 B
Makefile

################################################################################
#
# pico-sdk
#
################################################################################
PICO_SDK_VERSION = 2.2.0
PICO_SDK_SITE = https://github.com/raspberrypi/pico-sdk.git
PICO_SDK_SITE_METHOD = git
PICO_SDK_GIT_SUBMODULES = YES
PICO_SDK_LICENSE = BSD-3-Clause
PICO_SDK_LICENSE_FILES = LICENSE.TXT
PICO_SDK_INSTALL_STAGING = YES
# Header-only lib, as far as buildroot is concerned
PICO_SDK_INSTALL_TARGET = NO
define PICO_SDK_INSTALL_STAGING_CMDS
mkdir -p $(STAGING_DIR)/usr/share/pico-sdk
cp -r $(@D)/* $(STAGING_DIR)/usr/share/pico-sdk
endef
define HOST_PICO_SDK_INSTALL_CMDS
mkdir -p $(HOST_DIR)/share/pico-sdk
cp -r $(@D)/* $(HOST_DIR)/share/pico-sdk
endef
$(eval $(generic-package))
$(eval $(host-generic-package))