Is 'rollup' a part of the standard tools and build environment?

Melbourne
Posts: 9
Joined: Mon May 23, 2022 1:20 am

Is 'rollup' a part of the standard tools and build environment?

Postby Melbourne » Mon Jun 13, 2022 3:42 am

I'm trying to use expressif idf v4.1.2 to build a project I've inherited, like this:

docker run --rm -v f:\projects\myproject\firmware :/firmware -w /firmware -it espressif/idf:v4.1.2

That command finds the espressif idf container tagged v4.1.2 and creates an image linked to my firmware folder.

When I do
idf.py build

it gets only to line 5 of step 2, and fails on the command 'rollup':

[2/102] Generating rofs_data.c
FAILED: esp-idf/rest/rofs_data.c
cd /firmware/build/esp-idf/rest &&
cp /firmware/www/src/html/index.html /firmware/www/embedded/index.html &&
cp /firmware/www/src/html/my.mib /firmware/www/embedded/my.mib &&
cp /firmware/www/src/html/favicon32x32.png /firmware/www/embedded/favicon32x32.png &&
rollup /firmware/www/src/js/my.js --file /firmware/www/src/app.js --format iife &&
uglifyjs /firmware/www/src/app.js -c -m -o /firmware/www/embedded/app.js &&
/firmware/www/rofs/makerofs -d /firmware/www/embedded -o /firmware/components/rest/rofs_data.c
/bin/sh: 1: rollup: not found

cf rollup: https://rollupjs.org/guide/en/

I don't know where rollup and uglifyjs are supposed to come from. Is there a problem with my project, or is the problem with the v4.1.2 docker container?

ESP_Sprite
Posts: 9772
Joined: Thu Nov 26, 2015 4:08 am

Re: Is 'rollup' a part of the standard tools and build environment?

Postby ESP_Sprite » Mon Jun 13, 2022 8:32 am

Sounds like the project you have there has some custom magic in its makefiles in order to invoke those tools. From what I'm aware, they're not standard for ESP-IDF.

Who is online

Users browsing this forum: No registered users and 114 guests