heads/modules/ioport
Jonathon Hall 6e0d241913
ioport: Add ioport module (inb, outb)
Add ioport module, enable for librem_mini_v2.  Only inb and outb are
included, inw/outw/inl/outl aren't needed.

Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm>
2023-06-21 13:26:46 -04:00

23 lines
569 B
Makefile

modules-$(CONFIG_IOPORT) += ioport
ioport_version := 1.2
ioport_dir := ioport-$(ioport_version)
ioport_tar := ioport-$(ioport_version).tar.gz
ioport_url := https://people.redhat.com/rjones/ioport/files/$(ioport_tar)
ioport_hash := 7fac1c4b61eb9411275de0e1e7d7a8c3f34166f64f16413f50741e8fce2b8dc0
ioport_configure := CFLAGS=-Os ./configure \
$(CROSS_TOOLS) \
--prefix "/" \
--host i386-elf-linux
ioport_target := \
$(MAKE_JOBS) $(CROSS_TOOLS) inb && \
$(MAKE) -C "$(build)/$(ioport_dir)" all-local
ioport_output := \
inb \
outb
ioport_depends := $(musl_dep)