Incorrect device_codename error in device wizard
To test pmaports!737, I've tried to create a new device qemu-device-without-wiki-entry
. The wizard failed after generating the device aport. This should be easy to fix.
@minlexx: do you want to take a look?
EDIT: the important part seems to be "device" in the name - without it, it works as expected.
$ pmbootstrap init
[20:49:00] Location of the 'work' path. Multiple chroots (native, device arch, device rootfs) will be created in there.
[20:49:00] Work path [/home/user/.local/var/pmbootstrap]:
[20:49:01] NOTE: pmaports path: /home/user/.local/var/pmbootstrap/cache_git/pmaports
[20:49:01] Choose your target device vendor (either an existing one, or a new one for porting).
[20:49:01] Available vendors (39): amazon, asus, bq, chuwi, fairphone, finepower, google, gp, htc, huawei, infocus, jolla, leeco, lenovo, lg, meizu, motorola, nextbit, noki
a, oneplus, oppo, ouya, pine64, planet, purism, qemu, raspberry, samsung, semc, sony, surftab, t2m, tablet, teclast, wiko, wileyfox, wingtech, xiaomi, zte
[20:49:01] Vendor [nokia]: qemu
[20:49:15] Available codenames (3): aarch64, amd64, vexpress
[20:49:15] Device codename: device-without-wiki-entry
[20:49:26] You are about to do a new device port for 'qemu-device-without-wiki-entry'.
[20:49:26] Continue? (y/n) [y]:
[20:49:27] Generating new aports for: qemu-device-without-wiki-entry...
[20:49:27] Device architecture (armhf/armv7/aarch64/x86_64/x86) [armhf]:
[20:49:28] Who produced the device (e.g. LG)?
[20:49:28] Manufacturer:
[20:49:28] What is the official name (e.g. Google Nexus 5)?
[20:49:28] Name:
[20:49:29] Does the device have a hardware keyboard? (y/n) [n]:
[20:49:29] Does the device have a sdcard or other external storage medium? (y/n) [n]:
[20:49:29] Which flash method does the device support?
[20:49:29] Flash method (fastboot/heimdall/0xffff/uuu/none) [fastboot]:
[20:49:29] You can analyze a known working boot.img file to automatically fill out the flasher information for your deviceinfo file. Either specify the path to an image or
press return to skip this step (you can do it later with 'pmbootstrap bootimg_analyze').
[20:49:29] Path:
[20:49:30] *** pmaport generated: /home/user/.local/var/pmbootstrap/cache_git/pmaports/device/device-qemu-device-without-wiki-entry
[20:49:30] ERROR: Please add 'deviceinfo_codename="qemu-without-wiki-entry"' to: /home/user/.local/var/pmbootstrap/cache_git/pmaports/device/device-qemu-device-without-wiki
-entry/deviceinfo
[20:49:30] See also: <https://postmarketos.org/troubleshooting>
Run 'pmbootstrap log' for details.
Edited by Administrator