-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·46 lines (36 loc) · 1.09 KB
/
Copy pathMakefile
File metadata and controls
executable file
·46 lines (36 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#
# Copyright (C) 2006-2015 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=rust-libstd
PKG_VERSION:=0.0.1
PKG_MAINTAINER := Daan Pape <daan@dptechnics.com>
HOST_BUILD_DEPENDS:=rust/host
include $(INCLUDE_DIR)/package.mk
include ../../lang/rust/rustc-triple.mk
define Package/rust-libstd
SECTION:=lang
CATEGORY:=Languages
TITLE:=Rust standard library
endef
define Package/rust-libstd/description
The Rust standard library for dynamically linked applications
endef
define Build/Prepare
$(call Build/Prepare/Default)
mkdir -p $(PKG_BUILD_DIR)
$(CP) $(TOPDIR)/staging_dir/hostpkg/lib/rustlib/$(RUSTC_TARGET_ARCH)/lib/libstd-*.so $(PKG_BUILD_DIR)/
endef
define Build/Compile
stat $(PKG_BUILD_DIR)/*.so
$(TOPDIR)/staging_dir/toolchain-*/bin/mips-openwrt-linux-strip -s $(PKG_BUILD_DIR)/*.so
stat $(PKG_BUILD_DIR)/*.so
endef
define Package/rust-libstd/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/libstd-*.so $(1)/usr/lib/
endef
$(eval $(call BuildPackage,rust-libstd))