CONFIG_I2C_MUX_PINCTRL=y
CONFIG_I2C_BCM2708=m
CONFIG_I2C_BCM2835=y
+CONFIG_I2C_DESIGNWARE_PLATFORM=m
CONFIG_I2C_GPIO=y
CONFIG_I2C_STUB=m
CONFIG_SPI=y
CONFIG_V4L_PLATFORM_DRIVERS=y
CONFIG_VIDEO_MUX=y
CONFIG_VIDEO_BCM2835_UNICAM=y
+CONFIG_VIDEO_RASPBERRYPI_PISP_BE=y
CONFIG_VIDEO_RP1_CFE=y
-CONFIG_VIDEO_IMX219=y
-CONFIG_VIDEO_IMX708=y
+CONFIG_VIDEO_IMX219=m
+CONFIG_VIDEO_IMX708=m
CONFIG_VIDEO_OV5647=y
CONFIG_VIDEO_DW9807_VCM=y
CONFIG_DRM=y
CONFIG_I2C_MUX_PINCTRL=y
CONFIG_I2C_BCM2708=m
CONFIG_I2C_BCM2835=y
+CONFIG_I2C_DESIGNWARE_PLATFORM=m
CONFIG_I2C_GPIO=y
CONFIG_I2C_STUB=m
CONFIG_SPI=y
CONFIG_V4L_PLATFORM_DRIVERS=y
CONFIG_VIDEO_MUX=y
CONFIG_VIDEO_BCM2835_UNICAM=y
+CONFIG_VIDEO_RASPBERRYPI_PISP_BE=y
CONFIG_VIDEO_RP1_CFE=y
-CONFIG_VIDEO_IMX219=y
-CONFIG_VIDEO_IMX708=y
+CONFIG_VIDEO_IMX219=m
+CONFIG_VIDEO_IMX708=m
CONFIG_VIDEO_OV5647=y
CONFIG_VIDEO_DW9807_VCM=y
CONFIG_DRM=y
cp -a arch/arm/boot/dts/broadcom/bcm*.dtb ${TMP_PATH}
fi
mkdir -p ${TMP_PATH}/overlays
- cp -a arch/arm/boot/dts/overlays/*.dtbo ${TMP_PATH}/overlays
+ cp -a arch/arm/boot/dts/overlays/*.dtb* ${TMP_PATH}/overlays
# install u-boot files extracted from u-boot-rpi4 rpm package in download.tizen.org.
rm -rf ${TMP_UBOOT_PATH}
REPO_URL=http://download.tizen.org/snapshots/TIZEN/Tizen/Tizen-Unified/latest/repos/standard/packages/aarch64/
else
REPO_URL=http://download.tizen.org/snapshots/TIZEN/Tizen/Tizen-Unified/latest/repos/standard/packages/armv7l/
+ BITS=-32b
fi
rm -f index.html*
wget ${REPO_URL}
- UBOOT=`awk -F\" '{ print $2 }' index.html | grep u-boot-rpi4`
+ UBOOT=`awk -F\" '{ print $2 }' index.html | grep u-boot-rpi4${BITS}`
wget ${REPO_URL}${UBOOT}
unrpm ${UBOOT}
popd
goto out;
}
- sctx->clone_roots = kvcalloc(sizeof(*sctx->clone_roots),
- arg->clone_sources_count + 1,
+ sctx->clone_roots = kvcalloc(arg->clone_sources_count + 1,
+ sizeof(*sctx->clone_roots),
GFP_KERNEL);
if (!sctx->clone_roots) {
ret = -ENOMEM;
__u8 init_addr_type;
bdaddr_t resp_addr;
__u8 resp_addr_type;
- __u8 adv_instance;
__u16 handle;
__u16 sync_handle;
__u16 state;
goto unlock;
if (status) {
+ u8 type = conn->type;
mgmt_disconnect_failed(hdev, &conn->dst, conn->type,
conn->dst_type, status);
- if (conn->type == LE_LINK && conn->role == HCI_ROLE_SLAVE) {
- hdev->cur_adv_instance = conn->adv_instance;
+ if (type == LE_LINK)
hci_enable_advertising(hdev);
- }
/* Inform sockets conn is gone before we delete it */
hci_disconn_cfm(conn, HCI_ERROR_UNSPECIFIED);
struct hci_conn_params *params;
struct hci_conn *conn;
bool mgmt_connected;
+ u8 type;
bt_dev_dbg(hdev, "status 0x%2.2x", ev->status);
break;
}
}
+ type = conn->type;
hci_disconn_cfm(conn, ev->reason);
+ hci_conn_del(conn);
/* Re-enable advertising if necessary, since it might
* have been disabled by the connection. From the
* or until a connection is created or until the Advertising
* is timed out due to Directed Advertising."
*/
- if (conn->type == LE_LINK && conn->role == HCI_ROLE_SLAVE) {
- hdev->cur_adv_instance = conn->adv_instance;
+
+ if (type == LE_LINK)
hci_enable_advertising(hdev);
- }
- hci_conn_del(conn);
#ifdef TIZEN_BT
if (conn->type == ACL_LINK && !hci_conn_num(hdev, ACL_LINK)) {
conn->sec_level = BT_SECURITY_LOW;
conn->state = BT_CONFIG;
- /* Store current advertising instance as connection advertising instance
- * when sotfware rotation is in use so it can be re-enabled when
- * disconnected.
- */
- if (!ext_adv_capable(hdev))
- conn->adv_instance = hdev->cur_adv_instance;
-
conn->le_conn_interval = interval;
conn->le_conn_latency = latency;
conn->le_supv_timeout = supervision_timeout;
{
struct hci_evt_le_ext_adv_set_term *ev = data;
struct hci_conn *conn;
- struct adv_info *adv, *n;
+ struct adv_info *n;
bt_dev_dbg(hdev, "status 0x%2.2x", ev->status);
hci_dev_lock(hdev);
- adv = hci_find_adv_instance(hdev, ev->handle);
if (ev->status) {
+ struct adv_info *adv;
+ adv = hci_find_adv_instance(hdev, ev->handle);
if (!adv)
goto unlock;
goto unlock;
}
- if (adv)
- adv->enabled = false;
-
conn = hci_conn_hash_lookup_handle(hdev, __le16_to_cpu(ev->conn_handle));
if (conn) {
- /* Store handle in the connection so the correct advertising
- * instance can be re-enabled when disconnected.
- */
- conn->adv_instance = ev->handle;
+ struct adv_info *adv_instance;
if (hdev->adv_addr_type != ADDR_LE_DEV_RANDOM ||
bacmp(&conn->resp_addr, BDADDR_ANY))
goto unlock;
}
- if (adv)
- bacpy(&conn->resp_addr, &adv->random_addr);
+ adv_instance = hci_find_adv_instance(hdev, ev->handle);
+ if (adv_instance)
+ bacpy(&conn->resp_addr, &adv_instance->random_addr);
}
unlock:
arch aarch64 targets armv7l:aarch64 armv7hl:aarch64
+prefix /.linux-rpi
+
arm64-rpi4-linux-kernel
+ post "cp -a /.linux-rpi/boot/* /boot/"
+ post "cp -a /.linux-rpi/usr/share/licenses/* /usr/share/licenses/"
+ post "rm -rf /.linux-rpi"
+/
arm64-rpi4-linux-kernel-modules
+ post "cp -a /.linux-rpi/lib/modules/* /lib/modules/"
+ post "rm -rf /.linux-rpi"
+/
arm64-rpi4-rt-linux-kernel
- post "mv /boot/Image_rt /boot/Image"
+ post "cp -a /.linux-rpi/boot/* /boot/"
+ post "cp -a /.linux-rpi/usr/share/licenses/* /usr/share/licenses/"
+ post "rm -rf /.linux-rpi"
+ post "mv /boot/Image_rt /boot/Image"
+/
arm64-rpi4-rt-linux-kernel-modules
+ post "cp -a /.linux-rpi/lib/modules/* /lib/modules/"
+ post "rm -rf /.linux-rpi"
+/
# Install kernel DTB
install -m 644 build/%{variant}/arch/%{buildarch}/boot/dts/broadcom/bcm*.dtb %{buildroot}/boot/
mkdir -p %{buildroot}/boot/overlays
-install -m 644 build/%{variant}/arch/%{buildarch}/boot/dts/overlays/*.dtbo %{buildroot}/boot/overlays/
+install -m 644 build/%{variant}/arch/%{buildarch}/boot/dts/overlays/*.dtb* %{buildroot}/boot/overlays/
# Install kernel headers
make O=build/%{variant} headers_install %{?_smp_mflags} INSTALL_HDR_PATH=%{buildroot}/usr
/boot/zImage
%endif
/boot/bcm*.dtb
-/boot/overlays/*.dtbo
+/boot/overlays/*.dtb*
/boot/config.txt
/boot/LICENCE.broadcom
/boot/start*.elf
/boot/zImage_rt
%endif
/boot/bcm*.dtb
-/boot/overlays/*.dtbo
+/boot/overlays/*.dtb*
/boot/config.txt
/boot/LICENCE.broadcom
/boot/start*.elf
}
if (rec->switch_output.num_files) {
- rec->switch_output.filenames = calloc(sizeof(char *),
- rec->switch_output.num_files);
+ rec->switch_output.filenames = calloc(rec->switch_output.num_files,
+ sizeof(char *));
if (!rec->switch_output.filenames) {
err = -EINVAL;
goto out_opts;
static void prompt_integer(int *target, const char *msg)
{
- char *buf = malloc(0), *p;
+ char *buf = NULL, *p;
size_t dummy = 0;
int tmp;
}
if (symbol_conf.res_sample) {
- he->res_samples = calloc(sizeof(struct res_sample),
- symbol_conf.res_sample);
+ he->res_samples = calloc(symbol_conf.res_sample,
+ sizeof(struct res_sample));
if (!he->res_samples)
goto err_srcline;
}
*out_metric_events = NULL;
ids_size = hashmap__size(ids);
- metric_events = calloc(sizeof(void *), ids_size + 1);
+ metric_events = calloc(ids_size + 1, sizeof(void *));
if (!metric_events)
return -ENOMEM;
if (thread_nr > n)
thread_nr = n;
- synthesize_threads = calloc(sizeof(pthread_t), thread_nr);
+ synthesize_threads = calloc(thread_nr, sizeof(pthread_t));
if (synthesize_threads == NULL)
goto free_dirent;
- args = calloc(sizeof(*args), thread_nr);
+ args = calloc(thread_nr, sizeof(*args));
if (args == NULL)
goto free_threads;