summaryrefslogtreecommitdiffstats
path: root/meta-netboot
AgeCommit message (Expand)AuthorFilesLines
2017-11-30meta-netboot: enhance reference uboot config for R-Car Gen3Stephane Desneux1-22/+42
2017-11-22Rework Linux Kernel fragment applicationsTom Rini3-8/+0
2017-10-14meta-agl-bsp: Re-merge image-vm/image.bbclass overlaysTom Rini1-1/+1
2017-07-12netboot: fix dependency loop for qemu buildMatt Ranostay1-1/+1
2017-06-28Fix rpi-sdimg after IMAGE_FSTYPE being enforced in poky-agl.confJan-Simon Möller2-3/+3
2017-06-28Enforce same IMAGE_FSTYPES across all boards for AGLJan-Simon Möller1-4/+2
2017-06-23meta-agl-netboot: increase IMAGE_ROOTFS_EXTRA_SPACEStephane Desneux2-2/+3
2017-06-14README.renesas-gen3: add uboot env to setup ethernetStephane Desneux1-0/+2
2017-03-10meta-netboot: unify instructions to setup uboot for Rcar-Gen3 M3/H3 boardsStephane Desneux1-49/+53
2017-01-26Move feature code into the meta recipesRonan1-0/+5
2017-01-02Fix to get netboot activated also for renesas gen3Romain Forlot5-1/+90
2016-09-26Fix meta-netboot build on Minnowboard Max after migration to KrogothStephane Desneux1-2/+3
2016-09-14Set INITRAMFS_IMAGE instead of appending to itAnton Gerasimov1-1/+1
2016-06-19meta-netboot: generate appropriate resolv.conf from /proc/net/pnpStephane Desneux1-2/+5
2016-06-19meta-netboot: enable NBD and Ramdisk support in kernel configStephane Desneux3-0/+8
2016-06-10meta-netboot: mount remote filesystem with 'noatime' optionStephane Desneux1-1/+1
2016-05-29add layer meta-netboot to enable network boot over NBD (Network Block Device)Stephane Desneux9-0/+335
pan class="cpf"><stdio.h> #include <string.h> #include <unistd.h> #include <errno.h> #include <netdb.h> #include <fcntl.h> #include <math.h> #include <sys/time.h> #include <sys/types.h> #define _GNU_SOURCE // needed for vasprintf #include "AlsaLibMapping.h" #include <afb/afb-service-itf.h> PUBLIC const struct afb_binding_interface *binderIface; static void localping(struct afb_req request) { json_object *query = afb_req_json(request); afb_req_success(request, query, NULL); } /* * array of the verbs exported to afb-daemon */ static const struct afb_verb_desc_v1 binding_verbs[] = { /* VERB'S NAME SESSION MANAGEMENT FUNCTION TO CALL SHORT DESCRIPTION */ { .name= "ping" , .session= AFB_SESSION_NONE, .callback= localping, .info= "Ping Binding" }, { .name= "getinfo", .session= AFB_SESSION_NONE, .callback= alsaGetInfo, .info= "List All/One Sound Cards Info" }, { .name= "getctl", .session= AFB_SESSION_NONE, .callback= alsaGetCtl, .info= "List All/One Controls from selected sndcard" }, { .name= "subctl", .session= AFB_SESSION_NONE, .callback= alsaSubCtl, .info= "Subscribe to events from selected sndcard" }, { .name= NULL } /* marker for end of the array */ }; /* * description of the binding for afb-daemon */ static const struct afb_binding binding_description = { /* description conforms to VERSION 1 */ .type= AFB_BINDING_VERSION_1, .v1= { .prefix= "alsacore", .info= "Low Level Interface to Alsa Sound Lib", .verbs = binding_verbs } }; extern int afbBindingV1ServiceInit(struct afb_service service) { // this is call when after all bindings are loaded return (0); }; /* * activation function for registering the binding called by afb-daemon */ const struct afb_binding *afbBindingV1Register(const struct afb_binding_interface *itf) { binderIface= itf; return &binding_description; /* returns the description of the binding */ }