website: update Free Electrons logo
[buildroot-gz.git] / package / dt / dt.mk
blob8ec778888399e810f020c024b5e9cdb92fa8e6a5
1 ################################################################################
3 # dt
5 ################################################################################
7 DT_VERSION = v18.32
8 DT_SITE = http://pkgs.fedoraproject.org/repo/pkgs/dt/$(DT_SOURCE)/3054aeaaba047a1dbe90c2132a382ee2
9 DT_SOURCE = dt-source-$(DT_VERSION).tar.gz
10 DT_STRIP_COMPONENTS = 2
11 DT_LICENSE = ISC-like
12 DT_LICENSE_FILES = LICENSE
14 DT_CFLAGS = \
15 -std=c99 \
16 -DMMAP \
17 -D__linux__ \
18 -D_GNU_SOURCE \
19 -D_FILE_OFFSET_BITS=64 \
20 -DTHREADS \
21 -DSCSI
23 # uClibc doesn't provide POSIX AIO
24 ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),)
25 DT_CFLAGS += -DAIO
26 endif
28 define DT_BUILD_CMDS
29 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) -f Makefile.linux \
30 $(TARGET_CONFIGURE_OPTS) \
31 CFLAGS="$(TARGET_CFLAGS) $(DT_CFLAGS)" \
32 OS=linux
33 endef
35 define DT_INSTALL_TARGET_CMDS
36 $(INSTALL) -D -m 0755 $(@D)/dt $(TARGET_DIR)/usr/bin/dt
37 endef
39 $(eval $(generic-package))