|
@@ -2078,3 +2078,75 @@ NoodoeDS-rootfs:
|
|
|
|
|
|
NoodoeDS-all: NoodoeDS-uboot NoodoeDS-linux NoodoeDS-rootfs
|
|
|
|
|
|
+EVSE-Emulator-uboot-default: u-boot_clean u-boot
|
|
|
+ @cp -f $(UBOOT_INSTALL_DIR)/MLO EVSE/Projects/EVSE-Emulator/Images/
|
|
|
+ @cp -f $(UBOOT_INSTALL_DIR)/u-boot.img EVSE/Projects/EVSE-Emulator/Images/
|
|
|
+
|
|
|
+EVSE-Emulator-uboot-menuconfig:
|
|
|
+ @echo ===================================
|
|
|
+ @echo Building U-boot menuconfig
|
|
|
+ @echo ===================================
|
|
|
+ $(MAKE) -j $(MAKE_JOBS) -C $(UBOOT_INSTALL_DIR) CROSS_COMPILE=$(CROSS_COMPILE) menuconfig
|
|
|
+
|
|
|
+EVSE-Emulator-uboot:
|
|
|
+ @echo ===================================
|
|
|
+ @echo Building U-boot
|
|
|
+ @echo ===================================
|
|
|
+ @cp -f $(UBOOT_INSTALL_DIR)/arch/arm/dts/[EVSE-Emulator]am335x-evm.dts $(UBOOT_INSTALL_DIR)/arch/arm/dts/am335x-evm.dts
|
|
|
+ $(MAKE) -j $(MAKE_JOBS) -C $(UBOOT_INSTALL_DIR) CROSS_COMPILE=$(CROSS_COMPILE) FLASH_IC=MT29F16G08_BCH16 DDR_IC=MT41K256M16HA125E_303
|
|
|
+ @cp -f $(UBOOT_INSTALL_DIR)/MLO EVSE/Projects/EVSE-Emulator/Images/
|
|
|
+ @cp -f $(UBOOT_INSTALL_DIR)/u-boot.img EVSE/Projects/EVSE-Emulator/Images/
|
|
|
+ @cp -f $(UBOOT_INSTALL_DIR)/spl/u-boot-spl.bin EVSE/Projects/EVSE-Emulator/Images/
|
|
|
+
|
|
|
+EVSE-Emulator-linux-default: linux_clean linux
|
|
|
+ @cp -f $(LINUXKERNEL_INSTALL_DIR)/arch/arm/boot/zImage EVSE/Projects/EVSE-Emulator/Images/
|
|
|
+ @cp -f $(LINUXKERNEL_INSTALL_DIR)/arch/arm/boot/dts/am335x-evm.dtb EVSE/Projects/EVSE-Emulator/Images/
|
|
|
+
|
|
|
+EVSE-Emulator-linux:
|
|
|
+ @echo =====================================
|
|
|
+ @echo Building the Linux Kernel DTBs
|
|
|
+ @echo =====================================
|
|
|
+ @rm -f $(LINUXKERNEL_INSTALL_DIR)/arch/arm/boot/dts/am335x-evm.dtb
|
|
|
+ @cp -f $(LINUXKERNEL_INSTALL_DIR)/arch/arm/boot/dts/[EVSE-Emulator]am335x-evm.dts $(LINUXKERNEL_INSTALL_DIR)/arch/arm/boot/dts/am335x-evm.dts
|
|
|
+ $(MAKE) -j $(MAKE_JOBS) -C $(LINUXKERNEL_INSTALL_DIR) ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE) am335x-evm.dtb
|
|
|
+ @echo =================================
|
|
|
+ @echo Building User Linux Kernel
|
|
|
+ @echo =================================
|
|
|
+ @rm -f $(LINUXKERNEL_INSTALL_DIR)/arch/arm/boot/zImage
|
|
|
+ $(MAKE) -j $(MAKE_JOBS) -C $(LINUXKERNEL_INSTALL_DIR) ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE) zImage
|
|
|
+ $(MAKE) -j $(MAKE_JOBS) -C $(LINUXKERNEL_INSTALL_DIR) ARCH=arm CROSS_COMPILE=$(CROSS_COMPILE) modules
|
|
|
+ @cp -f $(LINUXKERNEL_INSTALL_DIR)/arch/arm/boot/zImage EVSE/Projects/EVSE-Emulator/Images/
|
|
|
+ @cp -f $(LINUXKERNEL_INSTALL_DIR)/arch/arm/boot/dts/am335x-evm.dtb EVSE/Projects/EVSE-Emulator/Images/
|
|
|
+ @cp -f $(LINUXKERNEL_INSTALL_DIR)/drivers/net/ethernet/qualcomm/qcaspi.ko EVSE/rootfs/lib/
|
|
|
+
|
|
|
+EVSE-Emulator-rootfs:
|
|
|
+ @echo =================================
|
|
|
+ @echo Building User rootfs
|
|
|
+ @echo =================================
|
|
|
+# @cd EVSE/GPL;make Project=Emulator all
|
|
|
+ @cd EVSE/Modularization;make TLS_EXPIRED=TLS_VALID_CERT_EXPIRED Project=Emulator all
|
|
|
+ @cd EVSE/Projects/EVSE-Emulator/Apps;make Project=Emulator all
|
|
|
+ @rm -f EVSE/Projects/EVSE-Emulator/Images/ramdisk.gz
|
|
|
+ @dd if=/dev/zero of=/dev/ram0 bs=1k count=131072
|
|
|
+ @mke2fs -vm0 /dev/ram0 131072
|
|
|
+ @tune2fs -c 0 /dev/ram0
|
|
|
+ @dd if=/dev/ram0 bs=1k count=131072 | gzip -v9 > EVSE/Projects/EVSE-Emulator/Images/ramdisk.gz
|
|
|
+ @mkdir -p EVSE/Projects/EVSE-Emulator/Images/mnt
|
|
|
+ @gunzip EVSE/Projects/EVSE-Emulator/Images/ramdisk.gz
|
|
|
+ @sync
|
|
|
+ @mount -o loop EVSE/Projects/EVSE-Emulator/Images/ramdisk EVSE/Projects/EVSE-Emulator/Images/mnt
|
|
|
+ @cp -rfv EVSE/rootfs/* EVSE/Projects/EVSE-Emulator/Images/mnt/
|
|
|
+ @chown www-data:www-data EVSE/Projects/EVSE-Emulator/Images/mnt/var/www -R
|
|
|
+ @chmod 777 EVSE/Projects/EVSE-Emulator/Images/mnt/var/log -R
|
|
|
+ @chmod 777 EVSE/Projects/EVSE-Emulator/Images/mnt/var/run -R
|
|
|
+ @cp -rfv EVSE/Projects/EVSE-Emulator/Images/root/* EVSE/Projects/EVSE-Emulator/Images/mnt/root
|
|
|
+ @sync
|
|
|
+ @sleep 3
|
|
|
+ @umount EVSE/Projects/EVSE-Emulator/Images/mnt
|
|
|
+ @sync
|
|
|
+ @gzip -v9 EVSE/Projects/EVSE-Emulator/Images/ramdisk
|
|
|
+ @rm -rfv EVSE/Projects/EVSE-Emulator/Images/root
|
|
|
+ @rm -rfv EVSE/Projects/EVSE-Emulator/Images/mnt
|
|
|
+
|
|
|
+EVSE-Emulator-all: EVSE-Emulator-uboot EVSE-Emulator-linux EVSE-Emulator-rootfs
|
|
|
+
|