gemini: fix ITian Square One SQ201 package selection
[openwrt/staging/lynxis.git] / target / linux / gemini / image / Makefile
index aca6e11df2206fa0c104874ba8c7528a70ea015a..805c0372c190e644460a14ec87b9eeb76878a98d 100644 (file)
@@ -71,6 +71,8 @@ define Build/nas4220b-sq201-images
        cp $(IMAGE_KERNEL) $@.tmp/zImage
        cp ./ImageInfo-$(1) $@.tmp/ImageInfo
 
+       sed -i -e "s/DATESTR/`date +%Y%m%d $(if $(SOURCE_DATE_EPOCH),--date "@$(SOURCE_DATE_EPOCH)")`/g" $@.tmp/ImageInfo
+
        (cd $@.tmp; tar --sort=name --owner=0 --group=0 --numeric-owner -czf $@ * \
                $(if $(SOURCE_DATE_EPOCH),--mtime="@$(SOURCE_DATE_EPOCH)"))
 
@@ -136,7 +138,7 @@ define Device/itian_sq201
        $(Device/itian-raidsonic)
        DEVICE_TITLE := ITian Square One SQ201
        DEVICE_DTS := gemini-sq201
-       DEVICE_PACKAGES += rt61-pci usb2-pci
+       DEVICE_PACKAGES += kmod-rt61-pci kmod-usb2-pci
 endef
 TARGET_DEVICES += itian_sq201
 
@@ -147,13 +149,6 @@ define Device/raidsonic_ib-4220-b
 endef
 TARGET_DEVICES += raidsonic_ib-4220-b
 
-define Device/teltonika_rut1xx
-       DEVICE_TITLE := Teltonika RUT1xx
-       DEVICE_DTS := gemini-rut1xx
-       DEVICE_PACKAGES := $(GEMINI_NAS_PACKAGES)
-endef
-TARGET_DEVICES += teltonika_rut1xx
-
 # The wiliboard images need some changes to be functional and buildable.
 #
 # The dts would need to use the ecoscentric,redboot-fis-partitions partition