diff --git a/board/miyoo/boot/firstboot b/board/miyoo/boot/firstboot index 29eb5a45..49c9176b 100755 --- a/board/miyoo/boot/firstboot +++ b/board/miyoo/boot/firstboot @@ -61,7 +61,7 @@ if test -e "${MOUNTDIR}/resize"; then echo "This can take A LONG TIME, so be patient." | tee -a ${LOG} umount /dev/mmcblk0p4 | tee -a ${LOG} fsck.fat -y /dev/mmcblk0p4 | tee -a ${LOG} - fatresize_hc | tee -a ${LOG} + fatresize -s max -v -p /dev/mmcblk0p4 -n 4 fsck.fat -y /dev/mmcblk0p4 | tee -a ${LOG} echo -n -e \\xEB\\x58\\x90 > /dev/mmcblk0p4 sync @@ -75,7 +75,7 @@ mount -o remount,rw "${MOUNTDIR}" | tee -a ${LOG} # disable this script echo "Disabling the firstboot script." | tee -a ${LOG} mv "${MOUNTDIR}/firstboot" "${MOUNTDIR}/firstboot.done" | tee -a ${LOG} -if test -e "${MOUNTDIR}/resize"; then rm "${MOUNTDIR}/resize"; fi +if test -e "${MOUNTDIR}/resize"; then rm "${MOUNTDIR}/resize"; reboot; fi mount -o remount,ro "${MOUNTDIR}" | tee -a ${LOG} echo diff --git a/configs/miyoo_uclibc_defconfig b/configs/miyoo_uclibc_defconfig index 64dd5961..cc456ccb 100644 --- a/configs/miyoo_uclibc_defconfig +++ b/configs/miyoo_uclibc_defconfig @@ -6,7 +6,7 @@ BR2_PER_PACKAGE_DIRECTORIES=y BR2_RELRO_NONE=y BR2_TOOLCHAIN_BUILDROOT_VENDOR="miyoo" BR2_KERNEL_HEADERS_4_9=y -BR2_TOOLCHAIN_BUILDROOT_LOCALE=y +BR2_TOOLCHAIN_BUILDROOT_WCHAR=y BR2_PTHREAD_DEBUG=y BR2_GCC_VERSION_9_X=y BR2_TOOLCHAIN_BUILDROOT_CXX=y diff --git a/package/fatresize/fatresize.mk b/package/fatresize/fatresize.mk index a36516e4..597aac7c 100644 --- a/package/fatresize/fatresize.mk +++ b/package/fatresize/fatresize.mk @@ -1,14 +1,5 @@ -FATRESIZE_VERSION = origin/hardcoded +FATRESIZE_VERSION = v1.1.0 FATRESIZE_SITE_METHOD = git -FATRESIZE_SITE = https://github.com/flabbergast/fatresize.git +FATRESIZE_SITE = https://github.com/ya-mouse/fatresize.git FATRESIZE_DEPENDENCIES = parted - -define FATRESIZE_BUILD_CMDS - $(MAKE) CC="$(TARGET_CC)" CXX="$(TARGET_CXX)" LD="$(TARGET_LD)" -C $(@D) -endef - -define FATRESIZE_INSTALL_TARGET_CMDS - $(INSTALL) -D -m 0755 $(@D)/fatresize_hc $(TARGET_DIR)/usr/bin -endef - -$(eval $(generic-package)) \ No newline at end of file +$(eval $(autotools-package)) \ No newline at end of file diff --git a/package/parted/Config.in b/package/parted/Config.in index f48b365a..9d78f0f1 100644 --- a/package/parted/Config.in +++ b/package/parted/Config.in @@ -1,6 +1,5 @@ config BR2_PACKAGE_PARTED bool "parted" - depends on BR2_ENABLE_LOCALE depends on BR2_USE_WCHAR select BR2_PACKAGE_UTIL_LINUX select BR2_PACKAGE_UTIL_LINUX_LIBUUID @@ -9,5 +8,5 @@ config BR2_PACKAGE_PARTED http://www.gnu.org/software/parted/ -comment "parted needs a toolchain w/ locale, wchar" - depends on !BR2_ENABLE_LOCALE || !BR2_USE_WCHAR +comment "parted needs a toolchain w/ wchar" + depends on !BR2_USE_WCHAR diff --git a/package/parted/parted-3.1.patch b/package/parted/parted-3.1.patch new file mode 100644 index 00000000..cbd47ede --- /dev/null +++ b/package/parted/parted-3.1.patch @@ -0,0 +1,24 @@ +diff --git a/libparted/arch/linux.c b/libparted/arch/linux.c +index e2c4139..56ae782 100644 +--- a/libparted/arch/linux.c ++++ b/libparted/arch/linux.c +@@ -41,6 +41,7 @@ + #include /* for uname() */ + #include + #include ++#include + #ifdef ENABLE_DEVICE_MAPPER + #include + #endif +diff --git a/libparted/fs/xfs/platform_defs.h b/libparted/fs/xfs/platform_defs.h +index 2b55752..a6ec8fb 100644 +--- a/libparted/fs/xfs/platform_defs.h ++++ b/libparted/fs/xfs/platform_defs.h +@@ -38,6 +38,7 @@ + #include + #include + #include ++#include + #include + #include + #include diff --git a/package/parted/parted.hash b/package/parted/parted.hash index e85c6447..a1eaba65 100644 --- a/package/parted/parted.hash +++ b/package/parted/parted.hash @@ -1,5 +1,6 @@ # Locally calculated after checking pgp signature sha256 57e2b4bd87018625c515421d4524f6e3b55175b472302056391c5f7eccb83d44 parted-3.3.tar.xz +sha256 5e9cc1f91eaf016e5033d85b9b893fd6d3ffaca532a48de1082df9b94225ca15 parted-3.1.tar.xz # Locally calculated sha256 0abbff814cd00e2b0b6d08395af2b419c1a92026c4b4adacbb65ccda45fa58cf COPYING diff --git a/package/parted/parted.mk b/package/parted/parted.mk index 66940fc5..bb9895aa 100644 --- a/package/parted/parted.mk +++ b/package/parted/parted.mk @@ -4,7 +4,7 @@ # ################################################################################ -PARTED_VERSION = 3.3 +PARTED_VERSION = 3.1 PARTED_SOURCE = parted-$(PARTED_VERSION).tar.xz PARTED_SITE = $(BR2_GNU_MIRROR)/parted PARTED_DEPENDENCIES = host-pkgconf util-linux