hc
2023-02-18 a08c8b75ee83d7f62c9aefc23bfb42082aa4076c
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
################################################################################
#
# Punybench
#
################################################################################
 
PUNYBENCH_VERSION = master
PUNYBENCH_SITE = $(TOPDIR)/../external/punybench
PUNYBENCH_SITE_METHOD = local
 
PUNYBENCH_LICENSE = GPLv2
PUNYBENCH_LICENSE_FILES = LICENSE/gpl.txt
 
PUNYBENCH_BUILD_OPTS = \
   -Wno-error=deprecated-declarations \
   -Wno-error=maybe-uninitialized \
 
PUNYBENCH_MAKE = \
   $(MAKE) BOARD=$(BR2_ARCH) \
 
PUNYBENCH_MAKE_OPTS = \
   CC="$(TARGET_CC) $(PUNYBENCH_BUILD_OPTS)" \
 
define PUNYBENCH_CONFIGURE_CMDS
   # Do nothing
endef
 
define PUNYBENCH_BUILD_CMDS
   $(TARGET_MAKE_ENV) $(PUNYBENCH_MAKE) -C $(@D) \
       $(PUNYBENCH_MAKE_OPTS)
endef
 
PUNYBENCH_POST_INSTALL_TARGET_HOOKS += PUNYBENCH_INSTALL_SCRIPT_HOOK
 
define PUNYBENCH_INSTALL_SCRIPT_HOOK
   $(INSTALL) -D -m 755 $(@D)/scripts/punybench.sh -t $(TARGET_DIR)/opt/punybench/script/
endef
 
$(eval $(autotools-package))