toolchain: skip gcc/minimal for musl
[openwrt/openwrt.git] / toolchain / uClibc / headers / Makefile
1 PATH_PREFIX:=..
2
3 include ../common.mk
4
5 HOST_STAMP_BUILT:=$(HOST_BUILD_DIR)/.headers_built
6 HOST_STAMP_INSTALLED:=$(TOOLCHAIN_DIR)/stamp/.uclibc_headers_installed
7
8 define Host/Compile
9
10 endef
11
12 define Host/Install
13 PATH='$(TARGET_PATH)' $(MAKE) -C $(HOST_BUILD_DIR) \
14 PREFIX="$(BUILD_DIR_TOOLCHAIN)/$(LIBC)-dev/" \
15 DEVEL_PREFIX=/ \
16 RUNTIME_PREFIX="$(BUILD_DIR_TOOLCHAIN)/$(LIBC)-dev/" \
17 HOSTCC="$(HOSTCC)" \
18 CC="$(TARGET_CC)" \
19 CPU_CFLAGS="$(TARGET_CFLAGS)" \
20 ARCH="$(CONFIG_ARCH)" \
21 pregen \
22 install_headers
23 $(CP) $(BUILD_DIR_TOOLCHAIN)/linux-dev/* $(BUILD_DIR_TOOLCHAIN)/$(LIBC)-dev/
24 endef
25
26 $(eval $(call HostBuild))
27