Make make-release.js work again now that the build system has changed.

This commit is contained in:
László Monda
2018-05-07 13:16:46 +02:00
parent 58e4919c0e
commit 455c1a30cb
3 changed files with 6 additions and 13 deletions

View File

@@ -13,22 +13,15 @@ const releaseName = `uhk-firmware-${version}`;
const releaseDir = `${__dirname}/${releaseName}`;
const modulesDir = `${releaseDir}/modules`;
const releaseFile = `${__dirname}/${releaseName}.tar.bz2`;
const leftFirmwareFile = `${__dirname}/../left/build/uhk60-left_release/uhk-left.bin`;
const leftFirmwareFile = `${__dirname}/../left/build_make/uhk_left.bin`;
const usbDir = `${__dirname}/../lib/agent/packages/usb`;
const deviceSourceFirmwares = package.devices.map(device => `${__dirname}/../${device.source}`);
const moduleSourceFirmwares = package.modules.map(module => `${__dirname}/../${module.source}`);
rm('-rf', releaseDir, releaseFile, deviceSourceFirmwares, moduleSourceFirmwares);
exec(`/opt/Freescale/KDS_v3/eclipse/kinetis-design-studio \
--launcher.suppressErrors \
-noSplash \
-application org.eclipse.cdt.managedbuilder.core.headlessbuild \
-import ${__dirname}/../left/build \
-import ${__dirname}/../right/build \
-cleanBuild uhk-left \
-cleanBuild uhk-right`
);
exec(`cd ${__dirname}/../left; make -j8`);
exec(`cd ${__dirname}/../right; make -j8`);
for (const device of package.devices) {
const deviceDir = `${releaseDir}/devices/${device.name}`;

View File

@@ -24,14 +24,14 @@
{
"deviceId": 1,
"name": "uhk60-right",
"source": "right/build/uhk60-right_release/uhk-right.hex"
"source": "right/build_make/uhk_right.hex"
}
],
"modules": [
{
"moduleId": 1,
"name": "uhk60-left",
"source": "left/build/uhk60-left_release/uhk-left.bin"
"source": "left/build_make/uhk_left.bin"
}
]
}