diff --git a/Makefile b/Makefile index ba5b8fb..ebcaf7b 100644 --- a/Makefile +++ b/Makefile @@ -113,22 +113,22 @@ rootfs-txz: rootfs-hhl-$(os_version)-$(arch).txz .PHONY: rootfs-tgz rootfs-tbz rootfs-txz toolchain-hhl-$(os_version)-$(arch).tgz: $(tooldir)/.built smalltools - paxtar -M uidgid -czf ../$@ toolchain-$(arch) + cd $(tooldir) && paxtar -M uidgid -czf $(basedir)/$@ toolchain-$(arch) toolchain-hhl-$(os_version)-$(arch).tbz: $(tooldir)/.built smalltools - paxtar -M uidgid -cjf ../$@ toolchain-$(arch) + cd $(tooldir) && paxtar -M uidgid -cjf $(basedir)/$@ toolchain-$(arch) toolchain-hhl-$(os_version)-$(arch).txz: $(tooldir)/.built smalltools - paxtar -M uidgid -cJf ../$@ toolchain-$(arch) + cd $(tooldir) && paxtar -M uidgid -cJf $(basedir)/$@ toolchain-$(arch) rootfs-hhl-$(os_version)-$(arch).tgz: $(plists) $(build)/.stripped - cd build && paxtar -M uidgid -czf ../$@ $(alldirs) + cd $(build) && paxtar -M uidgid -czf $(basedir)/$@ $(alldirs) rootfs-hhl-$(os_version)-$(arch).tbz: $(plists) $(build)/.stripped - cd build && paxtar -M uidgid -cjf ../$@ $(alldirs) + cd $(build) && paxtar -M uidgid -cjf $(basedir)/$@ $(alldirs) rootfs-hhl-$(os_version)-$(arch).txz: $(plists) $(build)/.stripped - cd build && paxtar -M uidgid -cJf ../$@ $(alldirs) + cd $(build) && paxtar -M uidgid -cJf $(basedir)/$@ $(alldirs) remove-toolchain: $(MAKE) -C toolchain remove diff --git a/distfiles/Makefile b/distfiles/Makefile index ea1e8c9..8b9de13 100644 --- a/distfiles/Makefile +++ b/distfiles/Makefile @@ -94,6 +94,7 @@ tzdata${tzdata_version}.tar.gz \ u-boot-$(u-boot_version).tar.bz2 \ udev-lfs-${udev-lfs_version}.tar.xz \ util-linux-${util-linux_version}.tar.xz \ +v1.9.14.tar.gz \ vim-${vim_version}.tar.gz \ wget-${wget_version}.tar.gz \ wireless-tools/wireless_tools.${wireless_tools_version}.tar.gz \ @@ -280,6 +281,11 @@ gzip: gzip-${gzip_version}.tar.xz gzip-${gzip_version}.tar.xz: wget -c ${gnu}/gzip/$@ +haveged: v1.9.14.tar.gz + +v1.9.14.tar.gz: + wget -c $(github)/jirka-h/haveged/archive/$@ + iana-etc: iana-etc-${iana-etc_version}.tar.gz iana-etc-${iana-etc_version}.tar.gz: diff --git a/include/mk/versions.mk b/include/mk/versions.mk index 13364d5..94ad661 100644 --- a/include/mk/versions.mk +++ b/include/mk/versions.mk @@ -39,6 +39,7 @@ grep_version = 3.6 groff_version = 1.22.4 grub_version = 2.04 gzip_version = 1.10 +haveged_version = 1.9.14 iana-etc_version = 20210115 inetutils_version = 1.9.4 intltool_version = 0.51.0 diff --git a/templates/world.mk b/templates/world.mk index 4a496c0..419f289 100644 --- a/templates/world.mk +++ b/templates/world.mk @@ -1,6 +1,6 @@ -# Makefile - hhl - /usr/src/world/foo +# Makefile - hhl - /src/world/foo # Copyright 2020 Nathan Fisher -# +# distname = foo include world.mk include targets.mk diff --git a/toolchain/binutils/Makefile b/toolchain/binutils/Makefile index bf5a78b..bce6421 100644 --- a/toolchain/binutils/Makefile +++ b/toolchain/binutils/Makefile @@ -19,4 +19,4 @@ include targets.mk $(tooldir)/lib64: install -d $(tooldir)/lib - ln -s lib $(toolcdir)/lib64 + ln -s lib $(tooldir)/lib64 diff --git a/toolchain/linux-headers/Makefile b/toolchain/linux-headers/Makefile index c8d3b03..98c7d1e 100644 --- a/toolchain/linux-headers/Makefile +++ b/toolchain/linux-headers/Makefile @@ -13,6 +13,10 @@ else ifeq ($(arch), riscv64) export ARCH=riscv else ifeq ($(arch), risv32) export ARCH=riscv +else ifeq ($(arch), x86_64) +export ARCH=x86_64 +else ifeq ($(filter i486 i586 i686, $(arch)), $(arch)) +export ARCH=x86 endif build_cmd = KBUILD_OUTPUT=$(objdir) $(MAKE) -C $(srcdir) headers define post_build diff --git a/world/Makefile b/world/Makefile index 68f2327..4c9fcce 100644 --- a/world/Makefile +++ b/world/Makefile @@ -69,6 +69,7 @@ subdirs += texinfo subdirs += procps-ng subdirs += util-linux subdirs += e2fsprogs +subdirs += haveged subdirs += eudev subdirs += skalibs subdirs += execline diff --git a/world/haveged/Makefile b/world/haveged/Makefile new file mode 100644 index 0000000..e898ffe --- /dev/null +++ b/world/haveged/Makefile @@ -0,0 +1,10 @@ +# Makefile - hhl - /src/world/havaged +# Copyright 2020 Nathan Fisher +# +distname = haveged +distext = gz +distfile = v$(haveged_version).tar.gz +include world.mk +config_opts += --host=$(tgt) +config_opts += --with-sysroot=$(DESTDIR) +include targets.mk