mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-21 09:42:09 +00:00
tools: libelf: install pkg-config file
Install the pkg-config definition for libelf in order to allow the kernel build process discover it later on. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
ac418ddecc
commit
d3f86c9cc3
@ -37,15 +37,17 @@ define Host/Compile
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Host/Install
|
define Host/Install
|
||||||
$(INSTALL_DIR) $(STAGING_DIR_HOST)/{lib,include/libelf}
|
$(INSTALL_DIR) $(STAGING_DIR_HOST)/{lib/pkgconfig,include/libelf}
|
||||||
$(CP) $(HOST_BUILD_DIR)/lib/{elf_repl.h,gelf.h,libelf.h,nlist.h,sys_elf.h} \
|
$(CP) $(HOST_BUILD_DIR)/lib/{elf_repl.h,gelf.h,libelf.h,nlist.h,sys_elf.h} \
|
||||||
$(STAGING_DIR_HOST)/include/libelf/
|
$(STAGING_DIR_HOST)/include/libelf/
|
||||||
$(CP) $(HOST_BUILD_DIR)/lib/libelf.a $(STAGING_DIR_HOST)/lib/
|
$(CP) $(HOST_BUILD_DIR)/lib/libelf.a $(STAGING_DIR_HOST)/lib/
|
||||||
|
$(CP) $(HOST_BUILD_DIR)/libelf.pc $(STAGING_DIR_HOST)/lib/pkgconfig/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Host/Clean
|
define Host/Clean
|
||||||
rm -rf $(STAGING_DIR_HOST)/include/libelf
|
rm -rf $(STAGING_DIR_HOST)/include/libelf
|
||||||
rm -f $(STAGING_DIR_HOST)/lib/libelf.a
|
rm -f $(STAGING_DIR_HOST)/lib/libelf.a
|
||||||
|
rm -f $(STAGING_DIR_HOST)/lib/pkgconfig/libelf.pc
|
||||||
$(call Host/Clean/Default)
|
$(call Host/Clean/Default)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user